bug-autoconf
[Top][All Lists]
Advanced

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

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


From: Paul Eggert
Subject: Re: gcc is "not an ANSI C-conforming const compiler"
Date: 14 Aug 2003 10:46:50 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Steve Chaplin <address@hidden> writes:

> "-Werror" turns the gcc warnings into errors. Unfortunately autoconf
> reports gcc as a "non-ANSI C-conforming const compiler".

The report is technically correct, since -Werror causes GCC to no
longer to conform to the C standard here.  But I agree that it'd be
nicer for Autoconf to do the expected thing.

Can you suggest a patch to autoconf so that it doesn't reject GCC,
simply because GCC has been told via -Werror to reject some valid ANSI
C constructs?  It would be helpful if you could test your patch with
some real 'configure' scripts.

One workaround is to not configure with CFLAGS set that way, but to
invoke make with the CFLAGS setting instead.




reply via email to

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