MSVC C4506 warning not suppressed by jamfile

View: New views
3 Messages — Rating Filter:   Alert me  

MSVC C4506 warning not suppressed by jamfile

by Paul A. Bristow-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Feeling anally retentive today ;-)

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.

For example (there are others) I find it running
boost_1_37_0\libs\algorithm\string\test

usinstances.cpp
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\xstring(239) :
warning C4506: no definition
for inline function 'size_t std::char_traits<_Elem>::length(const _Elem *)'
        with
        [
            _Elem=unsigned short
        ]

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 :-((

(I've also had trouble silencing some C4996 - unsafe checked iterators
warning - this might have a common cause).

Suggestions?  Thanks

Paul
---
Paul A. Bristow
Prizet Farmhouse
Kendal, UK   LA8 8AB
+44 1539 561830, mobile +44 7714330204
pbristow@...







_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: MSVC C4506 warning not suppressed by jamfile

by Steven Watanabe-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

In Christ,
Steven Watanabe

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: MSVC C4506 warning not suppressed by jamfile

by Paul A. Bristow-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



> -----Original Message-----
> From: Steven Watanabe [mailto:watanabesj@...]
> 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


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
LightInTheBox - Buy quality products at wholesale price!