summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/cppunit/TestAssert.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/cppunit/TestAssert.h b/include/cppunit/TestAssert.h
index 19a8ae5..de97f21 100644
--- a/include/cppunit/TestAssert.h
+++ b/include/cppunit/TestAssert.h
@@ -11,7 +11,8 @@
// Work around "passing 'T' chooses 'int' over 'unsigned int'" warnings when T
// is an enum type:
-#if defined __GNUC__ && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6))
+#if defined __GNUC__ && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6)) \
+ && !defined __clang__
#pragma GCC system_header
#endif