Re: Why pedantic?
Andreas Schwab <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
<[email protected]> writes: >> On Aug 25, 2015, at 9:05 AM, Andreas Schwab <[email protected]> wrote: >> >> <[email protected]> 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? Yes. The cross environment should be identical to the native one, apart from the different host. > 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 Andreas. -- Andreas Schwab, SUSE Labs, [email protected] GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."