mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Add comment explaining why we leak -Wparentheses under g++
This commit is contained in:
parent
b55424d3b2
commit
ff2b3c85a7
@ -16,6 +16,9 @@
|
|||||||
# 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
|
||||||
|
// locally because g++'s support for _Pragma is lacking in older,
|
||||||
|
// still supported, versions
|
||||||
# pragma GCC diagnostic ignored "-Wparentheses"
|
# pragma GCC diagnostic ignored "-Wparentheses"
|
||||||
# pragma GCC diagnostic push
|
# pragma GCC diagnostic push
|
||||||
# pragma GCC diagnostic ignored "-Wunused-variable"
|
# pragma GCC diagnostic ignored "-Wunused-variable"
|
||||||
|
Loading…
Reference in New Issue
Block a user