diff options
Diffstat (limited to 'include/cppunit')
-rw-r--r-- | include/cppunit/TestAssert.h | 3 |
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 |