[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_LANG_PROGRAM and -Wstrict-prototypes -Werror
From: |
Eric Blake |
Subject: |
Re: AC_LANG_PROGRAM and -Wstrict-prototypes -Werror |
Date: |
Wed, 16 Sep 2009 20:56:45 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Robert Millan <rmh <at> aybabtu.com> writes:
> This makes it possible to use AC_LANG_PROGRAM in autoconf scripts that
> have previously included -Wstrict-prototypes and -Werror in their CFLAGS.
This has come up previously on the list. So far, the answer has always been
that we currently _don't_ cater to -Werror in CFLAGS during configure, because
the patches to do so are more invasive than a one-liner, and no one has been
bothered enough to try and contribute a complete patch.
For this particular proposal, you would be breaking K&R compilation. Yes, we
want to move to a default of requiring a C89 compiler, and only supporting K&R
if the configure.ac author explicitly requested it, but applying your patch
would break the current default of supporting K&R by default. For now, I'm
just inclined to stick with the party line of 'if -Werror hurts, don't use it'.
--
Eric Blake