From 04f18d996ba7d71fda1d28662e2413c06c5e5a49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Fri, 21 Feb 2020 19:03:25 +0100 Subject: [PATCH] Suppress global constructor warning in benchmarking --- src/catch2/benchmark/detail/catch_complete_invoke.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/catch2/benchmark/detail/catch_complete_invoke.cpp b/src/catch2/benchmark/detail/catch_complete_invoke.cpp index c074f7a3..8fd43d12 100644 --- a/src/catch2/benchmark/detail/catch_complete_invoke.cpp +++ b/src/catch2/benchmark/detail/catch_complete_invoke.cpp @@ -8,7 +8,10 @@ namespace Catch { namespace Benchmark { namespace Detail { + CATCH_INTERNAL_START_WARNINGS_SUPPRESSION + CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS const std::string benchmarkErrorMsg = "a benchmark failed to run successfully"; + CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION } // namespace Detail } // namespace Benchmark } // namespace Catch