Build portability: enable or disable warnings
Kelly O'Hair
kelly.ohair at oracle.com
Mon May 16 17:52:06 UTC 2011
On May 16, 2011, at 10:12 AM, Andrew Haley wrote:
> 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.
But there is probably a set of warnings or options, e.g.
-Wall -Wno-this -Wno-that -Werror
that might be suitable to standardize on, right?
Although, that might be a different list with each gcc release as I have noticed.
We need a -Wall-the-warnings-that-are-really-important-to-fix ;^)
-kto
More information about the build-dev
mailing list