Re: compiler warnings, -Werror, etc.



On Fri, 2012-07-27 at 17:28 +0200, Frederic Peters wrote:
> Colin Walters wrote:
> 
> > For compiler warning defaults, I think something similar what Dan
> > Winship has in libsoup is what we should replicate across more GNOME
> > modules:
> > 
> > http://git.gnome.org/browse/libsoup/tree/configure.ac?id=f5902fce98ae0314f0d9ca6e544895548c94a456#n339
> > 
> > It's better than the GNOME_COMPILE_WARNINGS macro in gnome-common right
> > now, and *definitely* better than various modules having -Wall -Werror.
> 
> Is there some problem in fixing that macro? It would instantly fix
> dozens of modules (over 50 according to a quick grep).

Sure, I'm fine with that myself.  Let's see if anyone has objections, if
not I'll try a test build and see if anything needs fixing.

Not everything uses GNOME_COMPILE_WARNINGS, but that's not a big deal -
my main goal here is to in order:

1) Convince module maintainers not to use -Wall -Werror
2) Ensure we *do* use -Werror=format-security and the other core ones.
   That one is often injected by distributions right now, and it only
   therefore potentially gets noticed fixed after release when tarballs
   are rolled or whatever.




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