diff options
author | Neil <nyamatongwe@gmail.com> | 2018-03-26 14:30:55 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-03-26 14:30:55 +1100 |
commit | 31ac7bbd3f37432ad1cf9b9a875f8425e2b4afae (patch) | |
tree | 6b8efb633c3bbcd46646f84ba2da5654b4c710a5 | |
parent | c911108cef6c4c9208694ca556dbdb1ea82dac16 (diff) | |
download | scintilla-mirror-31ac7bbd3f37432ad1cf9b9a875f8425e2b4afae.tar.gz |
Avoid warnings about ignored diagnostic with Clang.
-rw-r--r-- | test/unit/unitTest.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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" |