Boost logo

Boost-Build :

Subject: Re: [Boost-build] MSVC C4506 warning not suppressed by jamfile
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2008-11-27 12:12:59


> -----Original Message-----
> From: Steven Watanabe [mailto:watanabesj_at_[hidden]]
> Sent: 26 November 2008 17:10
> To: Boost.Build developer's and user's list
> Subject: Re: [Boost-build] MSVC C4506 warning not suppressed by jamfile
>
> AMDG
>
> Paul A. Bristow wrote:
> > I am trying to silence this warning.
> >
> > As it is in MS code, there isn't much we can do about it - and I've no
> > reason suppose it is a meaningful warning.
> >
> > <snip>
> >
> > In my jamfile.v2 project requirements I have added
> >
> > <toolset>msvc:<cxxflags>/wd4506 # NO definition for inline
function
> > in MS Xstring).
> >
> > But this does not silence it :-((
> >
>
> cxxflags is not propagated. You need to suppress this from within the
> regex jamfile.

You are, as ever, correct and this in

I:\boost_1_37_0\libs\regex\build\Jamfile.v2

lib boost_regex : ../src/$(SOURCES) $(ICU_EXTRA_SOURCE) icu_config2
icu_config
    :
        #<link>static:<define>BOOST_REGEX_NO_LIB=1
        #<link>static:<define>BOOST_REGEX_STATIC_LINK=1
       <link>shared:<define>BOOST_REGEX_DYN_LINK=1
       <toolset>gcc-mw:<link>static
       <toolset>gcc-mingw:<link>static
       <toolset>gcc-cygwin:<link>static
       <toolset>msvc:<cxxflags>/wd4506 # NO definition for inline function
<<<<<<<<<<<<<<<<<<<
       # added PAB 27 Nov 08 for warning in MS Xstring
       $(BOOST_REGEX_ICU_OPTS)
    ;

Does the trick.

Thanks

Paul


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk