|
From: | Paul Eggert |
Subject: | Re: AC_FUNC_ALLOCA generates warning (problem with -Werror) |
Date: | Mon, 05 Jun 2006 19:01:24 -0700 |
User-agent: | Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
Jaap Haitsma <address@hidden> 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
[Prev in Thread] | Current Thread | [Next in Thread] |