[Coin-discuss] MSV pragma

Matthew Galati Matthew.Galati at sas.com
Sun Apr 1 08:45:35 EDT 2007


When built in MSV, several COIN projects trigger warnings C4290/C4996. I am fine ignoring them, but can we get them disabled? In my project, I do it in my DecompConfig.h. But, my project depends on several other COIN projects - so I get a very messy build log when building the deps. 

Can we somehow add these across the board? Maybe putting them in CoinPragma.hpp? Although I am not sure all projects include CoinPragma.hpp.

Thanks,
Matt


/***************************************************************************/
/*             HERE DEFINE MS PRAGMAS TO DISABLE SOME WARNINGS             */
/***************************************************************************/
#include "CoinPragma.hpp"
#if defined(_MSC_VER)
// warning C4290: C++ exception specification ignored except to indicate 
// a function is not __declspec(nothrow)
# pragma warning(disable:4290)
//warning C4996: 'std::xxx' was declared deprecated
# pragma warning(disable:4996)
#endif






More information about the Coin-discuss mailing list