From 160fa94a02b74f3c5a22ac1f874838c19a682295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 10 Jun 2012 15:51:56 +0200 Subject: [PATCH] Visual Studio: Hide VS compiler warnings for '(char)0xff' and '(char)0xfe' --- test/testpreprocessor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/testpreprocessor.cpp b/test/testpreprocessor.cpp index d8f1d8e6e..7f047c242 100644 --- a/test/testpreprocessor.cpp +++ b/test/testpreprocessor.cpp @@ -34,6 +34,10 @@ extern std::ostringstream errout; 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 { public: TestPreprocessor() : TestFixture("TestPreprocessor") {