aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-03-26 14:30:55 +1100
committerNeil <nyamatongwe@gmail.com>2018-03-26 14:30:55 +1100
commitad0ecc8a051be546866ee7c51868b6db5ff79982 (patch)
treee4c1156cb6e43359368dee10db12456211bb5568
parentcae725a2c9be925da3e39d0c352b5172bf3b4ab2 (diff)
downloadscintilla-mirror-ad0ecc8a051be546866ee7c51868b6db5ff79982.tar.gz
Backport: Avoid warnings about ignored diagnostic with Clang.
Backport of changeset 6652:4d04a4cc73af.
-rw-r--r--test/unit/unitTest.cxx2
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"