mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-01 17:37:57 +00:00
push/pop warnings when disabling parentheses warnings within assertion (gcc/ clang)
This commit is contained in:
parent
c9a37c59c4
commit
fe690a68ef
2 changed files with 14 additions and 2 deletions
|
@ -45,6 +45,7 @@
|
|||
try { \
|
||||
CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS \
|
||||
( __catchResult <= expr ).endExpression(); \
|
||||
CATCH_INTERNAL_UNSUPPRESS_PARENTHESES_WARNINGS \
|
||||
} \
|
||||
catch( ... ) { \
|
||||
__catchResult.useActiveException( resultDisposition ); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue