Visual Studio: Hide VS compiler warnings for '(char)0xff' and '(char)0xfe'

This commit is contained in:
Daniel Marjamäki 2012-06-10 15:51:56 +02:00
parent 4b80e91145
commit 160fa94a02
1 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,10 @@
extern std::ostringstream errout; extern std::ostringstream errout;
extern std::ostringstream output; extern std::ostringstream output;
// Visual Studio complains about truncated values for '(char)0xff' and '(char)0xfe'
// TODO: Is there any nice way to fix these warnings?
#pragma warning( disable : 4310 )
class TestPreprocessor : public TestFixture { class TestPreprocessor : public TestFixture {
public: public:
TestPreprocessor() : TestFixture("TestPreprocessor") { TestPreprocessor() : TestFixture("TestPreprocessor") {