From 83b966df470f6762bdf629d88db7d4a09ad276e4 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Sat, 5 Mar 2016 07:45:33 -0700 Subject: [PATCH] Address g++4.8 warnings --- unittests/catch.hpp | 2 +- unittests/compiled_tests.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/unittests/catch.hpp b/unittests/catch.hpp index 5b9bfc2..2554d91 100644 --- a/unittests/catch.hpp +++ b/unittests/catch.hpp @@ -149,7 +149,7 @@ # endif # if !defined(CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS) && defined(CATCH_CPP11_OR_GREATER) -# define CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS _Pragma( "gcc diagnostic ignored \"-Wparentheses\"" ) +# define CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS _Pragma( "GCC diagnostic ignored \"-Wparentheses\"" ) # endif // - otherwise more recent versions define __cplusplus >= 201103L diff --git a/unittests/compiled_tests.cpp b/unittests/compiled_tests.cpp index 40a6c88..edc62e2 100644 --- a/unittests/compiled_tests.cpp +++ b/unittests/compiled_tests.cpp @@ -7,6 +7,7 @@ #pragma warning(disable : 4062 4242 4640 4702 6330 28251) #endif + #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunknown-pragmas"