Boost logo

Boost-Build :

From: Paul A Bristow (pbristow_at_[hidden])
Date: 2007-08-01 07: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-sandbox\math_toolkit\libs\math\test>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
pbristow_at_[hidden]
 

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