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 405393.1646765196@sss.pgh.pa.us
Whole thread Raw
In response to cpluspluscheck complains about use of register  (Andres Freund <andres@anarazel.de>)
Responses Re: cpluspluscheck complains about use of register  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> When running cpluspluscheck I get many many complaints like
> /tmp/pg-test-repo/src/include/port/atomics/arch-x86.h:143:23: warning: ISO C++17 does not allow ‘register’ storage
classspecifier [-Wregister] 

Interesting, I don't see that here.

> It seems we should just remove the use of register?

I have a vague idea that it was once important to say "register" if
you are going to use the variable in an asm snippet that requires it
to be in a register.  That might be wrong, or it might be obsolete
even if once true.  We could try taking these out and seeing if the
buildfarm complains.  (If so, maybe -Wno-register would help?)

            regards, tom lane



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Time to drop plpython2?
Next
From: Tom Lane
Date:
Subject: Re: Time to drop plpython2?