Jaap Haitsma <[EMAIL PROTECTED]> writes: > This generates a warning that the variable p is never used. This is a > problem when you run configure with CFLAG="-Werror". Compilation of the > above code will fail.
Can you please give more details? I can't reproduce the problem. Here's how I tried: $ cat configure.ac AC_INIT AC_FUNC_ALLOCA AC_OUTPUT $ autoconf $ ./configure CFLAGS='-Werror' checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for working alloca.h... yes checking for alloca... yes configure: creating ./config.status $ gcc --version | sed 1q gcc (GCC) 4.1.1 $ uname -a Linux penguin 2.4.27-3-686 #1 Wed Feb 8 12:40:33 UTC 2006 i686 GNU/Linux $ autoconf --version | sed 1q autoconf (GNU Autoconf) 2.59
