Update catch_capture.hpp

Added parenthesis around expr to eliminate warnings in GCC 4.4.7
This commit is contained in:
GatoRat 2016-11-11 16:37:58 -08:00 committed by GitHub
parent 30cebd6177
commit b85e1b000e
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@
Catch::ResultBuilder __catchResult( macroName, CATCH_INTERNAL_LINEINFO, #expr, resultDisposition ); \ Catch::ResultBuilder __catchResult( macroName, CATCH_INTERNAL_LINEINFO, #expr, resultDisposition ); \
try { \ try { \
CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS \ CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS \
( __catchResult <= expr ).endExpression(); \ ( __catchResult <= (expr) ).endExpression(); \
} \ } \
catch( ... ) { \ catch( ... ) { \
__catchResult.useActiveException( Catch::ResultDisposition::Normal ); \ __catchResult.useActiveException( Catch::ResultDisposition::Normal ); \