diff options
| author | Phil Nash | 2015-05-21 06:15:53 +0100 |
|---|---|---|
| committer | Phil Nash | 2015-05-21 06:15:53 +0100 |
| commit | fc63b020c5c26f064f265262ca795df09a6d1721 (patch) | |
| tree | 4000672a8ce20c042e84650e3db278d169c2c4d9 /include | |
| parent | 6ed74b5cab3d8cfb2e474b2da1cad70e52cbb3b8 (diff) | |
| download | catch3-fc63b020c5c26f064f265262ca795df09a6d1721.tar.gz | |
suppressed some more warnings
Diffstat (limited to 'include')
| -rw-r--r-- | include/catch.hpp | 6 | ||||
| -rw-r--r-- | include/internal/catch_suppress_warnings.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/catch.hpp b/include/catch.hpp index 9f82c72d..f6359c02 100644 --- a/include/catch.hpp +++ b/include/catch.hpp @@ -9,6 +9,12 @@ #ifndef TWOBLUECUBES_CATCH_HPP_INCLUDED #define TWOBLUECUBES_CATCH_HPP_INCLUDED +#ifdef __clang__ +# pragma clang system_header +#elif defined __GNUC__ +# pragma GCC system_header +#endif + #include "internal/catch_suppress_warnings.h" #if defined(CATCH_CONFIG_MAIN) || defined(CATCH_CONFIG_RUNNER) diff --git a/include/internal/catch_suppress_warnings.h b/include/internal/catch_suppress_warnings.h index 7351f63b..e459dfcc 100644 --- a/include/internal/catch_suppress_warnings.h +++ b/include/internal/catch_suppress_warnings.h @@ -21,6 +21,7 @@ # pragma clang diagnostic ignored "-Wpadded" # pragma clang diagnostic ignored "-Wc++98-compat" # pragma clang diagnostic ignored "-Wc++98-compat-pedantic" +# pragma clang diagnostic ignored "-Wswitch-enum" # endif #elif defined __GNUC__ # pragma GCC diagnostic ignored "-Wvariadic-macros" |