autoconf
[Top][All Lists]
Advanced

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

Re: AC_CHECK_FUNCS and gcc with -Werror


From: Ralf Corsepius
Subject: Re: AC_CHECK_FUNCS and gcc with -Werror
Date: Wed, 03 Mar 2010 12:04:47 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Thunderbird/3.0.3

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]