fix diagnostic push/pop issue

This commit is contained in:
arvidn 2015-06-28 18:44:37 -04:00
parent a754559ac6
commit 2d1db68ea6
2 changed files with 9 additions and 4 deletions

View File

@ -51,6 +51,7 @@ POSSIBILITY OF SUCH DAMAGE.
#ifdef __GNUC__
#pragma GCC diagnostic push
// this is to suppress the warnings for using std::auto_ptr
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif

View File

@ -30,11 +30,15 @@ POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#ifdef _MSC_VER
#pragma warning(pop)
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif