Progmasoft Git

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

Suppress global constructor warning in benchmarking

Commit
04f18d996ba7d71fda1d28662e2413c06c5e5a49
Author
Martin Hořeňovský ·
Parents
3bb9fcd916ec

Files · Download .tar.gz

Changes

 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