On 08/23/2012 09:14 AM, Miles Bader wrote:
Russ Allbery <rra@xxxxxxxxxxxx> writes:
Also, you should generally not add -Wall -Wextra to the configure flags,
and instead add it after configure completes, since many of the tricks
configure has to use will result in warnings when you turn on all the
compiler warnings, which can confuse configure.
How can that confuse configure?
No idea. The working priciples of standard autoconf checks are based on
evaluating compiler errors only and to ignore warnings[1], therefore
-Wall -Wextra must not desturb "by definition".
However, adding -Werror to CFLAGS is dangerous, because this will raise
GCC warnings to errors, which will cause autoconf to become confused and
to produce bogus results.
Ralf
[1] There exist (non-standard) autoconf checks which are based on
evaluating compiler warnings. If properly written, these also should not
be affected by "-Wall -Wextra", ... if they are, these checks need to be
considered broken ;)
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf