LOCK_DEBUG breaks compile in 8.2 (and possibly later)

Started by Mark Kirkwoodabout 19 years ago2 messages
#1Mark Kirkwood
markir@paradise.net.nz

I just noticed that defining LOCK_DEBUG causes a compile failure (have
not delved into how to fix, but thought it would be worth noting at this
point!):

gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -g -I.
-I../../../../src/include -c -o guc.o guc.c
guc.c:1310: error: `FirstNormalObjectId' undeclared here (not in a function)
guc.c:1310: error: initializer element is not constant

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Mark Kirkwood (#1)
Re: LOCK_DEBUG breaks compile in 8.2 (and possibly later)

Mark Kirkwood <markir@paradise.net.nz> writes:

I just noticed that defining LOCK_DEBUG causes a compile failure

Still another demonstration that Bruce's approach to removing "unused"
#includes does not work. Patched in HEAD ...

regards, tom lane