Suppress parentheses warnings on clang and gcc

- should address #593, #528, #521, #496 (and possibly others)
This commit is contained in:
Phil Nash
2016-02-29 08:01:06 +00:00
parent 8ccb18daa9
commit 91bfe68a75
2 changed files with 21 additions and 6 deletions

View File

@@ -33,6 +33,7 @@
do { \
Catch::ResultBuilder __catchResult( macroName, CATCH_INTERNAL_LINEINFO, #expr, resultDisposition ); \
try { \
CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS \
( __catchResult <= expr ).endExpression(); \
} \
catch( ... ) { \