Build portability: enable or disable warnings

Andrew Haley aph at redhat.com
Mon May 16 17:12:00 UTC 2011


On 05/16/2011 05:50 PM, Dmitry Samersoff wrote:
> Andrew,
> 
> I guess we can add to build system something like
> 
> ALT_COMPILER_FLAGS
> 
> and turn on all warnings and -Werror by default.
> 
> Having zero-warning build is good practice and it's not too costly.

It'd drive you mad.  gcc's -Wall is really not suitable to be enabled
by default; it was never intended for that.

Andrew.



More information about the build-dev mailing list