Re: cpluspluscheck complains about use of register

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Tristan Partin" <tristan(at)partin(dot)io>
Cc: "Christoph Berg" <myon(at)debian(dot)org>, "Andres Freund" <andres(at)anarazel(dot)de>, pgsql-hackers(at)postgresql(dot)org, "Fabien COELHO" <coelho(at)cri(dot)ensmp(dot)fr>
Subject: Re: cpluspluscheck complains about use of register
Date: 2024-10-25 20:19:25
Message-ID: 3055138.1729887565@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Tristan Partin" <tristan(at)partin(dot)io> writes:
> FWIW, I ran into this compiling an extension written in C++ for v15, so
> I'll throw my support for backpatching this if that is still on the
> table. Understandable if not, though.

I'm inclined to think "too late". Even if we back-patched to v15
and earlier now, your extension would probably still want to be
compilable against earlier minor releases, so the back-patch
would not help you a lot. Christoph's workaround of
"#define register" is probably the best answer for old PG versions,
or you can compile with "-Wno-register".

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tristan Partin 2024-10-25 20:24:46 Re: cpluspluscheck complains about use of register
Previous Message Tristan Partin 2024-10-25 20:07:10 Re: cpluspluscheck complains about use of register