Re: cpluspluscheck complains about use of register - Mailing list pgsql-hackers

From Tom Lane
Subject Re: cpluspluscheck complains about use of register
Date
Msg-id 3055138.1729887565@sss.pgh.pa.us
Whole thread Raw
In response to Re: cpluspluscheck complains about use of register  ("Tristan Partin" <tristan@partin.io>)
Responses Re: cpluspluscheck complains about use of register
List pgsql-hackers
"Tristan Partin" <tristan@partin.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



pgsql-hackers by date:

Previous
From: "Tristan Partin"
Date:
Subject: Re: cpluspluscheck complains about use of register
Next
From: "Tristan Partin"
Date:
Subject: Re: cpluspluscheck complains about use of register