diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-02-10 13:34:57 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-02-10 13:35:35 +0100 |
commit | 8de63bac75a73011b7de19d730413adf1fbfd50f (patch) | |
tree | 309cc0dd64472039975cbc3c97b11c652f7ab888 /cppunit/cppunit-1.12.1-warnings.patch | |
parent | d06a78c25bcb2672ef55664b495b2891e324bff2 (diff) |
-Werror=sign-promo from cppunit
Diffstat (limited to 'cppunit/cppunit-1.12.1-warnings.patch')
-rw-r--r-- | cppunit/cppunit-1.12.1-warnings.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cppunit/cppunit-1.12.1-warnings.patch b/cppunit/cppunit-1.12.1-warnings.patch new file mode 100644 index 000000000000..8941de76d124 --- /dev/null +++ b/cppunit/cppunit-1.12.1-warnings.patch @@ -0,0 +1,19 @@ +--- misc/cppunit-1.12.1/include/cppunit/TestAssert.h 2012-02-10 12:34:26.564961982 +0100 ++++ misc/build/cppunit-1.12.1/include/cppunit/TestAssert.h 2012-02-10 12:33:57.660131866 +0100 +@@ -46,7 +46,16 @@ + static std::string toString( const T& x ) + { + OStringStream ost; ++// Work around "passing 'T' chooses 'int' over 'unsigned int'" warnings when T ++// is an enum type: ++#if defined __GNUC__ && ((__GNUC__ == 4 && __GNUC_MINOR__ >= 6) || __GNUC__ > 4) ++#pragma GCC diagnostic push ++#pragma GCC diagnostic ignored "-Wsign-promo" ++#endif + ost << x; ++#if defined __GNUC__ && ((__GNUC__ == 4 && __GNUC_MINOR__ >= 6) || __GNUC__ > 4) ++#pragma GCC diagnostic pop ++#endif + return ost.str(); + } + }; |