List Info

Thread: How to avoid warnings about warnings?




How to avoid warnings about warnings?
country flaguser name
United Kingdom
2007-08-01 06:35:50
In an attempt to avoid a MSVC warning about needing /EHa if
have added

      <toolset>msvc:<cxxflags>-EHa
to

project  
    : requirements 
     
<toolset>gcc:<cxxflags>-Wno-missing-braces
     
<toolset>darwin:<cxxflags>-Wno-missing-braces
     
<toolset>acc:<cxxflags>+W2068,2461,2236,4070
      <toolset>intel:<cxxflags>-Qwd264,239
      <toolset>msvc:<cxxflags>-EHa
      <include>../../..
      <source>/boost/regex//boost_regex
     
<link>shared:<define>BOOST_REGEX_DYN_LINK=1
      <define>BOOST_ALL_NO_LIB=1
    ;

But then I get D9025 warnings about overriding

I:Boost-sandboxmath_toolkitlibsmathtest>bjam --v2
> test3.log
cl : Command line warning D9025 : overriding '/EHs' with
'/EHa'
... for 30 lines!
cl : Command line warning D9025 : overriding '/EHs' with
'/EHa'

I've also added a <cxxflags>-W4 to a jamfile.v2 to try
to check for warnings 

but then I get lots more warnings about warnings!

cl : Command line warning D9025 : overriding '/W3' with
'/W4'
... for 30 lines!
cl : Command line warning D9025 : overriding '/W3' with
'/W4'

Any suggestions on what am I doing wrong?

Paul

PS Actually, I'd like to suppress particular warnings (MSVC
C4127 "expression is constant" in particular is
alsomost universal and
totally unhelpful) without cluttering the test code with
pragmas.

Any suggestions?

---
Paul A Bristow
Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB
+44 1539561830 & SMS, Mobile +44 7714 330204 & SMS
pbristowhetp.u-net.com

 

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

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )