Re: AC_CHECK_FUNCS and gcc with -Werror

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/03/2010 11:52 AM, Steffen Dettmer wrote:
Hi,

in configure.in I have:

AC_CHECK_FUNCS(printf)

together with some

------------------------------------------------------------------->8=======
AC_DEFUN([IC_ENABLE_ERRORS],[
   AC_ARG_ENABLE(errors,
     [ --enable-errors[=ARG]         Enable error mode
         (warnings are errors) [ARG=no]],
   ....
   if test x$enable_errors = xyes ; then
     case $CC in
       dnl Just in case someone would have a non-gcc "thingcc", don't match *gcc
       gcc|*-gcc)
         CFLAGS="$CFLAGS -Werror";
         ;;
=======8<-------------------------------------------------------------------



In config.log then:

configure:11204: gcc -o conftest  -Wall -Wmissing-prototypes
-fstrict-aliasing -D_GNU_SOURCE -ansi -ggdb -D_REENTRANT -Werror
-ggdb conftest
.c  -lpthread>&5
cc1: warnings being treated as errors
conftest.c:67: warning: conflicting types for built-in function 'printf'

what to do best here?
Not using -Werror

Ralf


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux