[Coin-discuss] MSV pragma

Andreas Waechter andreasw at watson.ibm.com
Sun Apr 1 09:36:26 EDT 2007


Hi Matt,

What happens when you add the flag -wd4996 and -wd4290 to your compiler 
flags?

Andreas

On Sun, 1 Apr 2007, Matthew Galati wrote:

> 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
>
>
>
> _______________________________________________
> Coin-discuss mailing list
> Coin-discuss at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-discuss
>



More information about the Coin-discuss mailing list