
26 Oct
2009
26 Oct
'09
5:12 p.m.
Nod. However, in this case the only code in the header after the pragma is the problem code causing the warnings, so I'm not sure we gain much?
The pragma applies to the entire header, not just to the code following it, IIUC.
Are you sure? The gcc docs say: "There is also a directive, #pragma GCC system_header, which tells GCC to consider the rest of the current include file a system header, no matter where it was found. Code that comes before the `#pragma' in the file will not be affected." John.