Stop -Wunused-variable suppression leaking out of Catch's header

Previously it was leaking to suppress warnings on `SECTION`s,
but Clang's support for `_Pragma` is solid, so we can suppress
those locally.

Fixes #1317
This commit is contained in:
Martin Hořeňovský
2018-07-01 20:54:07 +02:00
parent e69c7ce297
commit b55424d3b2
3 changed files with 17 additions and 3 deletions

View File

@@ -10,7 +10,6 @@
# pragma warning(push)
# pragma warning(disable: 161 1682)
# else // __ICC
# pragma clang diagnostic ignored "-Wunused-variable"
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wpadded"
# pragma clang diagnostic ignored "-Wswitch-enum"