From ad0ecc8a051be546866ee7c51868b6db5ff79982 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 26 Mar 2018 14:30:55 +1100 Subject: Backport: Avoid warnings about ignored diagnostic with Clang. Backport of changeset 6652:4d04a4cc73af. --- 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