Add comment explaining why we leak -Wparentheses under g++

This commit is contained in:
Martin Hořeňovský 2018-07-01 21:47:19 +02:00
parent b55424d3b2
commit ff2b3c85a7

View File

@ -16,6 +16,9 @@
# 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"
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wunused-variable"