From 31ac7bbd3f37432ad1cf9b9a875f8425e2b4afae Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 26 Mar 2018 14:30:55 +1100 Subject: Avoid warnings about ignored diagnostic with Clang. --- test/unit/unitTest.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unit/unitTest.cxx b/test/unit/unitTest.cxx index a98b740d8..aa9eb6a99 100644 --- a/test/unit/unitTest.cxx +++ b/test/unit/unitTest.cxx @@ -42,8 +42,10 @@ // may not be available so protect by turning off pragma warnings #pragma GCC diagnostic ignored "-Wunknown-pragmas" #pragma GCC diagnostic ignored "-Wpragmas" +#if !defined(__clang__) #pragma GCC diagnostic ignored "-Wmisleading-indentation" #endif +#endif #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file #include "catch.hpp" -- cgit v1.2.3