
10 Nov
2009
10 Nov
'09
3:55 a.m.
Stewart, Robert wrote: Emil Dotchevski wrote: Would it be a good idea to document a macro BOOST_NO_GCC_SYSTEM_HEADER, to enable developers to use something like: #ifndef BOOST_NO_GCC_SYSTEM_HEADER #pragma GCC system_header #endif The motivation being that a developer could still see warnings by #defining BOOST_NO_GCC_SYSTEM_HEADER while (by default) hiding warnings for users of the library? That seems useful. But redundant. It's already built into gcc to do this. If you just have the pragma and then build with -Wsystem-headers it turns the warnings back on. No sense in reinventing the wheel. Cheers, Patrick