Improve explanation of why -Wparentheses suppression leaks

Related to #1508
This commit is contained in:
Martin Hořeňovský 2019-01-25 21:29:12 +01:00
parent 804a2118c2
commit d9e99dc2ca
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -16,10 +16,11 @@
# pragma clang diagnostic ignored "-Wcovered-switch-default"
# endif
#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"
// Because REQUIREs trigger GCC's -Wparentheses, and because still
// supported version of g++ have only buggy support for _Pragmas,
// Wparentheses have to be suppressed globally.
# pragma GCC diagnostic ignored "-Wparentheses" // See #674 for details
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wunused-variable"
# pragma GCC diagnostic ignored "-Wpadded"