Re: [HACKERS] new compile warning

2003-08-03 Thread Bruce Momjian
Tom Lane wrote: > Joe Conway <[EMAIL PROTECTED]> writes: > > plpython.c: In function `plpython_call_handler': > > plpython.c:354: warning: suggest explicit braces to avoid ambiguous `else' > > Apparently the Python boys are not familiar with the do {...} while (0) > trick to ensure that a macro co

Re: [HACKERS] new compile warning

2003-08-03 Thread Tom Lane
Joe Conway <[EMAIL PROTECTED]> writes: > plpython.c: In function `plpython_call_handler': > plpython.c:354: warning: suggest explicit braces to avoid ambiguous `else' Apparently the Python boys are not familiar with the do {...} while (0) trick to ensure that a macro containing C statements won't

[HACKERS] new compile warning

2003-08-03 Thread Joe Conway
Just cvsup'd and built from make clean. Getting this new warning: make[3]: Entering directory `/opt/src/pgsql/src/pl/plpython' i386-redhat-linux-gcc -O2 -g -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -I. -I/usr/include/python2.2 -I../../../src/include -I/usr/kerberos/include -c -o p