From 358b7b29e11485d8696b15d83db2d747b96211c3 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Tue, 24 Sep 2013 07:41:18 +0100 Subject: [PATCH] Eliminate a warning in the latest clang with Xcode --- include/internal/catch_reporter_registrars.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/internal/catch_reporter_registrars.hpp b/include/internal/catch_reporter_registrars.hpp index fecbfa91..51465556 100644 --- a/include/internal/catch_reporter_registrars.hpp +++ b/include/internal/catch_reporter_registrars.hpp @@ -67,8 +67,8 @@ namespace Catch { } #define INTERNAL_CATCH_REGISTER_LEGACY_REPORTER( name, reporterType ) \ - Catch::LegacyReporterRegistrar catch_internal_RegistrarFor##reporterType( name ); + namespace{ Catch::LegacyReporterRegistrar catch_internal_RegistrarFor##reporterType( name ); } #define INTERNAL_CATCH_REGISTER_REPORTER( name, reporterType ) \ - Catch::ReporterRegistrar catch_internal_RegistrarFor##reporterType( name ); + namespace{ Catch::ReporterRegistrar catch_internal_RegistrarFor##reporterType( name ); } #endif // TWOBLUECUBES_CATCH_REPORTER_REGISTRARS_HPP_INCLUDED