Don't report 'warning unknown pragma' message with GCC.

This commit is contained in:
Edoardo Prezioso 2012-07-18 00:48:45 +02:00
parent a768b0e8b2
commit aedaacba95
1 changed files with 2 additions and 0 deletions

View File

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