Boost logo

Boost-Build :

From: Artem Alimarine (artem_at_[hidden])
Date: 2006-08-11 14:39:33

Artem Alimarine wrote:
> I have a high warning level in my project. It leads to lots of warnings
> in stl and boost includes. How do I filter warnings in the system
> include files and in boost?

Oh, I figured out that the warnings can be given in the project as off
and in the targets as on. This way the boost libraries are built with
warnings off and my libraries with warnings on.

project frame
     : requirements

lib hello_lib
     : source.cpp
     : <warnings>all

However, there is still a problem with warnings in the boost include
files. With MSVC they can be turned off by pragmas, in GCC not. However
in GCC the boost files can be declared as system header files. I do it

project frame
     : requirements
               <toolset>gcc:<cxxflags>"-isystem "$(BOOST_ROOT)

If there is a better way to achieve a clean compilation of own code with
high warning level, please let me know.


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at