mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
Improve explanation of why -Wparentheses suppression leaks
Related to #1508
This commit is contained in:
parent
804a2118c2
commit
d9e99dc2ca
@ -16,10 +16,11 @@
|
|||||||
# pragma clang diagnostic ignored "-Wcovered-switch-default"
|
# pragma clang diagnostic ignored "-Wcovered-switch-default"
|
||||||
# endif
|
# endif
|
||||||
#elif defined __GNUC__
|
#elif defined __GNUC__
|
||||||
// GCC likes to warn on REQUIREs, and we cannot suppress them
|
// Because REQUIREs trigger GCC's -Wparentheses, and because still
|
||||||
// locally because g++'s support for _Pragma is lacking in older,
|
// supported version of g++ have only buggy support for _Pragmas,
|
||||||
// still supported, versions
|
// Wparentheses have to be suppressed globally.
|
||||||
# pragma GCC diagnostic ignored "-Wparentheses"
|
# pragma GCC diagnostic ignored "-Wparentheses" // See #674 for details
|
||||||
|
|
||||||
# pragma GCC diagnostic push
|
# pragma GCC diagnostic push
|
||||||
# pragma GCC diagnostic ignored "-Wunused-variable"
|
# pragma GCC diagnostic ignored "-Wunused-variable"
|
||||||
# pragma GCC diagnostic ignored "-Wpadded"
|
# pragma GCC diagnostic ignored "-Wpadded"
|
||||||
|
Loading…
Reference in New Issue
Block a user