bug-autoconf
[Top][All Lists]
Advanced

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

gcc is "not an ANSI C-conforming const compiler"


From: Steve Chaplin
Subject: gcc is "not an ANSI C-conforming const compiler"
Date: 14 Aug 2003 20:14:21 +0800

AC_C_CONST
with
CC=gcc
CFLAGS="-g -O2 -Wall -Werror"
 
config.log reports:
configure:3669: checking for an ANSI C-conforming const
configure:3736: gcc -c -g -O2 -Wall -Werror  conftest.c >&5
conftest.c: In function `main':
conftest.c:49: warning: unused variable `s'
conftest.c:69: warning: unused variable `foo'
conftest.c:30: warning: unused variable `x'
conftest.c:36: warning: unused variable `zero'
configure:3739: $? = 1
configure: failed program was:
| /* confdefs.h.  */
...
configure:3754: result: no
 
 
"-Werror" turns the gcc warnings into errors. Unfortunately autoconf
reports gcc as a "non-ANSI C-conforming const compiler".

-- 
Steve Chaplin <address@hidden>





reply via email to

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