Boost logo

Boost :

From: Maciej Sobczak (prog_at_[hidden])
Date: 2004-03-18 07:17:10


Hi,

Nicolas LELONG / mgdesign wrote:

> I've been successfully compiling boost.thread library (from boost 1.31.0) as
> a DLL with VC71, and I also compile the alarm example which seems to work
> fine, although I get a few warnings during the compilation (listed below).
>
> Do these warnings have been fixed since 1.31.0 ? Would they prevent any
> "real" app from working ?

As far as I know, they are not something you should be nervous about.

Some time ago I found (I do not remember where) a list of warnings that
are not helpful at all but can be generated when compiling modern libs.
The list of these warnings and the macros I use to shut them up (all
this is in the header file that I include where needed) are:

// these are the meaningless warnings:
// 4097 4127 4250 4251 4275 4284 4290 4291 4355 4505 4511 4512 4514 4554
4706 4710 4786 4800

// for VC++6: _MSC_VER == 1200

# if defined _MSC_VER
# if (_MSC_VER == 1200)
# pragma warning (disable : 4097 4251 4275 4284 4355 4511 4512 4514
4786)
# endif
# endif

// for VC++7.1: _MSC_VER == 1310

# if defined _MSC_VER
# if (_MSC_VER >= 1300)
# pragma warning (disable : 4251)
# endif
# endif

I disable only those warnings that were appearing in my compilations
(so, as you can see, VC++7.1 generates far less warnings than VC++6) and
*only* those from the list above. You may need to modify the disable lists.

At least I can show the "0 warnings" message to my boss. ;-)

-- 
Maciej Sobczak : http://www.msobczak.com/
Programming    : http://www.msobczak.com/prog/

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk