diff options
| author | Martin Hořeňovský | 2019-10-28 13:13:23 +0100 |
|---|---|---|
| committer | GitHub | 2019-10-28 13:13:23 +0100 |
| commit | 5290d4bedcf8f008d2a5475a5cdcd9fe0c8127c5 (patch) | |
| tree | 12766a7f86da045be9f995a97e1e46e3fcede4dd /projects | |
| parent | 7ada02e21ee66ac89783011526ca8058f8234053 (diff) | |
| parent | 849f2848bdf625a7b6248e4e62ba0e39ee609634 (diff) | |
| download | catch3-5290d4bedcf8f008d2a5475a5cdcd9fe0c8127c5.tar.gz | |
Merge pull request #1791 from catchorg/dev-reorganize-warning-suppression
Rework how warning suppression in macros is done
Diffstat (limited to 'projects')
| -rw-r--r-- | projects/SelfTest/UsageTests/Misc.tests.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/projects/SelfTest/UsageTests/Misc.tests.cpp b/projects/SelfTest/UsageTests/Misc.tests.cpp index 188bc2d7..808d1d0a 100644 --- a/projects/SelfTest/UsageTests/Misc.tests.cpp +++ b/projects/SelfTest/UsageTests/Misc.tests.cpp @@ -58,9 +58,11 @@ struct AutoTestReg { REGISTER_TEST_CASE( manuallyRegisteredTestFunction, "ManuallyRegistered" ); } }; + +CATCH_INTERNAL_START_WARNINGS_SUPPRESSION CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS static AutoTestReg autoTestReg; -CATCH_INTERNAL_UNSUPPRESS_GLOBALS_WARNINGS +CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION template<typename T> struct Foo { |