Boost logo

Boost :

From: vc (vcotirlea_at_[hidden])
Date: 2003-06-11 06:04:44

Hi all,

This discussion was a long time ago, but I didn't get the end of it.
As building the thread library I get a lot of warnings I would like
to remove them somehow (I'm using the 1.30 release version).

So, what would you suggest? Using pragma's is safe enough?
If yes, where is the best place to add this ?


----- Original Message -----
From: "William E. Kempf" <wekempf_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Wednesday, March 26, 2003 1:10 AM
Subject: Re: [boost] VC7/Threads Warnings

> David Abrahams said:
> > "William E. Kempf" <wekempf_at_[hidden]> writes:
> >
> >> David Abrahams said:
> >>> "William E. Kempf" <wekempf_at_[hidden]> writes:
> >>>
> >>>> Hmm... this surprised me. Mr. Maclean indicated the warnings were
> >>>> level 1 _and_ 2. Builds with bjam do report errors, so the warning
> >>>> level can't be 0. MSDN indicates "Level 2 is the default warning
> >>>> level at the command line." So I assumed that it must be an RTL
> >>>> issue causing the warnings for him. However, experimenting with
> >>>> 'bjam -sTOOLS=vc7
> >>>> -sBUILD="<vc7><*><cxxflags>-W2' does indeed produce the warnings in
> >>>> question. So it appears that MSDN is wrong, and that level 1 is
> >>>> selected if none is supplied? I plan to bump the level up in my own
> >>>> set of bjam tool sets.
> >>>
> >>> Suggestion: turn them on with #pragmas in the library's test files.
> >>
> >> This won't turn them on when compiling the library itself, though.
> >> Turning them on only for the test files won't catch many of the
> >> warnings.
> >
> > So I suggest you use #pragmas in the library implementation files
> > also. My point is that you shouldn't need a custom toolset to see the
> > warnings, and if it's your aim to avoid triggering them they
> > should show up in the Boost regression tests when you do.
> I guess I'm wondering if the official toolsets shouldn't be changed. I
> don't understand why the MSDN indicates it should default to /W2 while
> we're seeing it default to what I assume is /W1. But, projects created by
> the IDE default to /W3 (which is also the level recommended by the MSDN),
> so it makes sense to me that we should probably do the same? Otherwise,
> users are likely to see warnings that we don't represent in the regression
> logs.
> --
> William E. Kempf
> _______________________________________________
> Unsubscribe & other changes:

Boost list run by bdawes at, gregod at, cpdaniel at, john at