Re: [PATCH] warnings: check -Wfoo rather than -Wno-foo

2013-08-19 Thread Christophe Fergeau
Hey, On Wed, Aug 14, 2013 at 05:33:07PM -0600, Eric Blake wrote: > As reported by Christophe Fergeau and others, use of the > warnings modules is awkward when probing for negative > warning flags. For example, clang recognizes > -Wno-unused-command-line-argument, but gcc does not; &g

Re: gl_WARN_ADD does not work with -Wno-xxxx warnings

2013-08-14 Thread Christophe Fergeau
On Wed, Aug 14, 2013 at 06:29:14AM -0600, Eric Blake wrote: > On 08/14/2013 01:58 AM, Christophe Fergeau wrote: > > Hi, > > > > gcc handling of -Wno- flags is different from its handling of -W > > flags as described in > > http://gcc.gnu.org/onlinedocs/g

gl_WARN_ADD does not work with -Wno-xxxx warnings

2013-08-14 Thread Christophe Fergeau
Hi, gcc handling of -Wno- flags is different from its handling of -W flags as described in http://gcc.gnu.org/onlinedocs/gcc-4.8.1/gcc/Warning-Options.html#Warning-Options : "When an unrecognized warning option is requested (e.g., -Wunknown-warning), GCC emits a diagnostic stating that th