catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Eliminate a warning in the latest clang with Xcode
- Commit
358b7b29e11485d8696b15d83db2d747b96211c3- Author
- Phil Nash ·
- Parents
1e2f1d160336
Changes
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<reporterType> catch_internal_RegistrarFor##reporterType( name ); + namespace{ Catch::LegacyReporterRegistrar<reporterType> catch_internal_RegistrarFor##reporterType( name ); } #define INTERNAL_CATCH_REGISTER_REPORTER( name, reporterType ) \ - Catch::ReporterRegistrar<reporterType> catch_internal_RegistrarFor##reporterType( name ); + namespace{ Catch::ReporterRegistrar<reporterType> catch_internal_RegistrarFor##reporterType( name ); } #endif // TWOBLUECUBES_CATCH_REPORTER_REGISTRARS_HPP_INCLUDED