Boost logo

Boost :

Subject: Re: [boost] Official warnings policy?
From: Patrick Horgan (phorgan1_at_[hidden])
Date: 2009-11-09 22:55:49


   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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk