Added pragma diagnostic for GCC warnings

This commit is contained in:
Ion Gaztañaga
2015-10-14 22:20:32 +02:00
parent fd4ecafbd9
commit 01ae144003
2 changed files with 8 additions and 0 deletions

View File

@@ -43,3 +43,8 @@
#pragma warning (disable : 4671) // the copy constructor is inaccessible
#pragma warning (disable : 4250) // inherits 'x' via dominance
#endif
#if defined(BOOST_GCC) && (BOOST_GCC >= 40000)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif

View File

@@ -11,3 +11,6 @@
#pragma warning (pop)
#endif
#if defined(BOOST_GCC) && (BOOST_GCC >= 40000)
#pragma GCC diagnostic pop
#endif