Re: Macro redefinition warning after aeb07c55fab5c17a600b77ffcdc3b71425d6a8e7
Re: Macro redefinition warning after aeb07c55fab5c17a600b77ffcdc3b71425d6a8e7
От:
Masahiko Sawada <sawada.mshk@gmail.com>
Дата:
On Wed, Jul 1, 2026 at 9:32 AM Tristan Partin wrote: > > When compiling, I get the following warnings: FYI I got the same warnings (Fedora 43, gcc 1.2.1). Regards, -- Masahiko Sawada Amazon Web Services: https://aws.amazon.com
Re: Macro redefinition warning after aeb07c55fab5c17a600b77ffcdc3b71425d6a8e7
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
"Tristan Partin" writes: > When compiling, I get the following warnings: > [338/2397] Compiling C object src/timezone/zic.p/zic.c.o > In file included from ../src/timezone/zic.c:22: > ../src/timezone/private.h:187:9: warning: ‘unreachable’ redefined > 187 | #define unreachable() pg_unreachable() > | ^~~~~~~~~~~ Thanks for the report. > The upstream code for private.h's definition of unreachable() looks > quite a bit different than ours[0]. Yeah. I intentionally used our version rather than hoping that theirs would work in our environment. I still think that's the right way, so I'm inclined to fix this by throwing in an "#undef". regards, tom lane