From 20d3f1939d27a51c523cfc696d8a3ab8aa5dff6c Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Tue, 12 Mar 2024 11:27:06 -0600 Subject: [PATCH] Ignore C++98 related compiler warnings Catch2 has long since required a standard newer than C++98 so we can safely ignore any warnings related to such old standards. --- tests/SelfTest/TestRegistrations.cpp | 1 - tests/SelfTest/UsageTests/Misc.tests.cpp | 5 ----- 2 files changed, 6 deletions(-) diff --git a/tests/SelfTest/TestRegistrations.cpp b/tests/SelfTest/TestRegistrations.cpp index 64767735..d7a6966f 100644 --- a/tests/SelfTest/TestRegistrations.cpp +++ b/tests/SelfTest/TestRegistrations.cpp @@ -20,7 +20,6 @@ CATCH_REGISTER_TAG_ALIAS("[@tricky]", "[tricky]~[.]") #ifdef __clang__ # pragma clang diagnostic ignored "-Wpadded" # pragma clang diagnostic ignored "-Wweak-vtables" -# pragma clang diagnostic ignored "-Wc++98-compat" #endif /** diff --git a/tests/SelfTest/UsageTests/Misc.tests.cpp b/tests/SelfTest/UsageTests/Misc.tests.cpp index f08c8ef1..3697f069 100644 --- a/tests/SelfTest/UsageTests/Misc.tests.cpp +++ b/tests/SelfTest/UsageTests/Misc.tests.cpp @@ -11,11 +11,6 @@ #include #include -#ifdef __clang__ -# pragma clang diagnostic ignored "-Wc++98-compat" -# pragma clang diagnostic ignored "-Wc++98-compat-pedantic" -#endif - #include #include