Re: cpluspluscheck complains about use of register

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: cpluspluscheck complains about use of register
Дата
Msg-id 405393.1646765196@sss.pgh.pa.us
обсуждение исходный текст
Ответ на cpluspluscheck complains about use of register  (Andres Freund <andres@anarazel.de>)
Ответы Re: cpluspluscheck complains about use of register  (Andres Freund <andres@anarazel.de>)
Список 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 по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Time to drop plpython2?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Time to drop plpython2?