On 12/02/2011 11:05 AM, Eric Blake wrote: > Should gl_MANYWARN_ALL_GCC be adding some gcc -f options? For example, > at least gcc 4.3.4 -Wdisabled-optimization would emit a warning that > several other -W warnings are useless without -funit-at-a-time also in > place (see coreutils commit 5e361387d). Also, according to 'info gcc, > -Wsuggest-attribute=pure only works if -fipa-pure-const is turned on > (true by default for -O compilation, but apparently the -W option can > also catch a few cases even without -O if -fipa-pure-const is manually > turned on).
I also meant to add that -fdiagnostics-show-option is a must for determining which warnings are firing, when deciding which warnings to avoid. Having these -f options added by default instead of making each client add them would make maintenance easier. -- Eric Blake ebl...@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature