Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Hořeňovský2019-10-22 00:09:16 +0200
committerMartin Hořeňovský2019-10-22 00:10:01 +0200
commit7d0b205564567359ced799af93bbf7b1f0511102 (patch)
tree2a3f5a6204730e0c333702105f9f435b34ec537f
parent8fb1219013fece468e2821d1a0fbb9028482bb3b (diff)
downloadcatch3-7d0b205564567359ced799af93bbf7b1f0511102.tar.gz
Prevent warning suppression from leaking when registering a listener
-rw-r--r--include/internal/catch_reporter_registrars.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/internal/catch_reporter_registrars.hpp b/include/internal/catch_reporter_registrars.hpp
index 660f554a..459caef8 100644
--- a/include/internal/catch_reporter_registrars.hpp
+++ b/include/internal/catch_reporter_registrars.hpp
@@ -63,9 +63,9 @@ namespace Catch {
CATCH_INTERNAL_UNSUPPRESS_GLOBALS_WARNINGS
#define CATCH_REGISTER_LISTENER( listenerType ) \
- CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS \
- namespace{ Catch::ListenerRegistrar<listenerType> catch_internal_RegistrarFor##listenerType; } \
- CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS
+ CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS \
+ namespace{ Catch::ListenerRegistrar<listenerType> catch_internal_RegistrarFor##listenerType; } \
+ CATCH_INTERNAL_UNSUPPRESS_GLOBALS_WARNINGS
#else // CATCH_CONFIG_DISABLE
#define CATCH_REGISTER_REPORTER(name, reporterType)