Boost logo

Boost-Build :

From: Reece Dunn (msclrhd_at_[hidden])
Date: 2006-03-06 06:11:30


Vladimir Prus wrote:
>On Wednesday 01 March 2006 04:08, Herb Sutter wrote:
> > > That's the problem. So when warnings=off we need to add
> > > -D_SCL_SECURE_NO_DEPRECATE and -D_CRT_SECURE_NO_DEPRECATE. It's hard
> > > to believe /W0 doesn't actually disable all warnings any more, but
> > > there you have it!
> >
> > Yuck, that's a bug. Fortunately it's one that will already be fixed by
> > the changes we're making to remove the "deprecated" wording and make it
> > easy for libraries to turn those off (you can already turn 4996 off
> > entirely with -wd4996 and the coming fix will make that also work
> > correctly for template libraries). But we've logged this bug in its own
> > right anyway.
>
>just a quick followup to make sure I understand the problem correctly and
>can
>fix this in V2.
>
>1. The current version of msvc 8.0 requires those two defines in order to
>really suppress all warnings.

I believe that:

toolset.flags <warnings>off : /W0 /wd4996 ;

should also work (as per Herb's reply).

>2. This will be fixed in a future version.

I believe so.

>Is that correct?
>
>Is there any estimate of the msvc version in which this will be fixed, so
>that
>I can add appropriate comment to Boost.Build for benefit of users and
>future
>maintenance?

Adding the additional /wd4996 to the <warnings>off option shouldn't cause
any problems and will work with all msvc versions.

- Reece


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