bug-gnulib
[Top][All Lists]
Advanced

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

Re: warning: module to simplify adding compiler warnings


From: Paolo Bonzini
Subject: Re: warning: module to simplify adding compiler warnings
Date: Mon, 10 Nov 2008 19:51:03 +0100
User-agent: Thunderbird 2.0.0.17 (Macintosh/20080914)

Simon Josefsson wrote:
> I want to add some warning flags from configure, including -Werror.

You can use AC_PREPROC_IFELSE if using GCC:

$ gcc -E -x c /dev/null -Wno-frobnicate
cc1: error: unrecognized command line option "-Wno-frobnicate"

It is faster.

Also, this:

> +  AC_COMPILE_IFELSE(AC_LANG_PROGRAM([]), foo=yes, foo=no)

is underquoted:

AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], foo=yes, foo=no)

Thanks,

Paolo




reply via email to

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