[MSVisualStudio-tickets] [MSDevStudio] #5: warnings C4290/C4996
MSDevStudio
coin-trac at coin-or.org
Sun Apr 1 19:00:34 EDT 2007
#5: warnings C4290/C4996
------------------------+---------------------------------------------------
Reporter: mgalati | Owner: somebody
Type: defect | Status: new
Priority: minor | Milestone:
Component: component1 | Version:
Keywords: warnings |
------------------------+---------------------------------------------------
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
OR
Hi Matt,
I don't think it is necessarily a good idea to have all projects
necessarily draw in CoinPragma.hpp (e.g., Ipopt currently doesn't use
CoinUtils).
Maybe JP can just add those flags to the compilation flags in the
DeveloperStudio projects... JP, what do you think?
Cheers
Andreas
{{{
/***************************************************************************/
/* 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
}}}
--
Ticket URL: <https://projects.coin-or.org/MSVisualStudio/ticket/5>
MSDevStudio <http://projects.coin-or.org/MSVisualStudio>
Configuration files for building COIN-OR projects in Microsoft Developer's Studio.
More information about the MSVisualStudio-tickets
mailing list