This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Wno-warning-directives [WasRe: cpplib: Start moving ...]
Richard Henderson wrote:-
> If the argument is that this warning comes from third-party header
> files, the counter-argument is that the third party probably put
> it in there for a reason, and that if you ignore the warning you
> may well not understand the input constraints of the package.
Indeed - we had a PR where someone complained that #warnings were
switched off in system headers, so we changed it so #warning is
an exception to the "no warnings in system headers" rule.
Neil.