This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Why pedantic?
- From: Pedro Alves <palves at redhat dot com>
- To: Paul_Koning at dell dot com, schwab at suse dot de
- Cc: gdb at sourceware dot org
- Date: Tue, 25 Aug 2015 14:41:43 +0100
- Subject: Re: Why pedantic?
- Authentication-results: sourceware.org; auth=none
- References: <F7BDA5B1-D300-42DB-968F-C4AEBFA880C2 at dell dot com> <55DC3DE1 dot 5000605 at redhat dot com> <075A8681-8112-4F94-A6D2-765DC677B37C at dell dot com> <mvmfv3734d8 dot fsf at hawking dot suse dot de> <9F3A813A-9CB4-4B8B-9D4F-7E687B95834C at dell dot com>
On 08/25/2015 02:17 PM, Paul_Koning@dell.com wrote:
>
>> On Aug 25, 2015, at 9:05 AM, Andreas Schwab <schwab@suse.de> wrote:
>>
>> <Paul_Koning@Dell.com> writes:
>>
>>> The problem is that the libiberty build, as is typical, uses header files from the host, and there is no reason to assume that all those headers on every supported host OS are pedantic-safe.
>>
>> GCC suppresses warnings in system headers by default.
>
> For cross-builds? Not in the ones we do. Is there some command line switch that needs to be passed to tell gcc that a particular include directory is for "system headers" and to apply that rule?
-isystem instead of -I.
Thanks,
Pedro Alves