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

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/benchmark
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-02-21 19:03:25 +0100
committerMartin Hořeňovský2020-02-21 23:10:12 +0100
commit04f18d996ba7d71fda1d28662e2413c06c5e5a49 (patch)
treef8f1115105b6bc359be18e21be9730844d115035 /src/catch2/benchmark
parent3bb9fcd916ecd4a78d1b8bd4c03b0e37115b2532 (diff)
downloadcatch3-04f18d996ba7d71fda1d28662e2413c06c5e5a49.tar.gz
Suppress global constructor warning in benchmarking
Diffstat (limited to 'src/catch2/benchmark')
-rw-r--r--src/catch2/benchmark/detail/catch_complete_invoke.cpp3
1 files changed, 3 insertions, 0 deletions
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