Обсуждение: LOCK_DEBUG breaks compile in 8.2 (and possibly later)

Поиск
Список
Период
Сортировка

LOCK_DEBUG breaks compile in 8.2 (and possibly later)

От
Mark Kirkwood
Дата:
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


Re: LOCK_DEBUG breaks compile in 8.2 (and possibly later)

От
Tom Lane
Дата:
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