Build portability: enable or disable warnings
Erik Trimble
erik.trimble at oracle.com
Tue May 17 05:53:17 UTC 2011
On 5/16/2011 12:38 PM, Andrew Haley wrote:
> On 05/16/2011 07:59 PM, Dmitry Samersoff wrote:
>> Andrew,
>>
>> On 2011-05-16 21:12, 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.
>> OK.
>>
>> But in this case we have no reliable way to deal with "semi-crazy
>> distros" as all our attempts to disable all but some important warnings
>> could be blocked by theirs patches.
> No: their patches don't force anything, only changing the default.
> The user's choice is honoured.
>
> Andrew.
Is there any way to invoke gcc with some option that says "ignore all
built-in options" ?
e.g. gcc -Wignore-everything-built-in
and not just override things one at a time?
--
Erik Trimble
Java System Support
Mailstop: usca22-123
Phone: x17195
Santa Clara, CA
Timezone: US/Pacific (GMT-0800)
More information about the build-dev
mailing list