Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/onqtam/doctest.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvage <29021710+Saalvage@users.noreply.github.com>2022-05-14 05:09:34 +0300
committerSalvage <29021710+Saalvage@users.noreply.github.com>2022-05-14 05:09:34 +0300
commitc8274bd0423db69ae4d967e41dbaa7c0da499657 (patch)
tree3ca83e6a596a8f08eb0e9974f5f5268d89e3658c
parenta6208a61f41a96c0fd69bea5770bcd9e61b62c98 (diff)
Fix C5246 warning
-rw-r--r--doctest/doctest.h2
-rw-r--r--doctest/parts/doctest.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/doctest/doctest.h b/doctest/doctest.h
index fee062d2..6eadd2e4 100644
--- a/doctest/doctest.h
+++ b/doctest/doctest.h
@@ -3288,7 +3288,7 @@ typedef timer_large_integer::type ticks_t;
ticks_t getCurrentTicks() { return DOCTEST_CONFIG_GETCURRENTTICKS(); }
#elif defined(DOCTEST_PLATFORM_WINDOWS)
ticks_t getCurrentTicks() {
- static LARGE_INTEGER hz = {0}, hzo = {0};
+ static LARGE_INTEGER hz = { {0} }, hzo = { {0} };
if(!hz.QuadPart) {
QueryPerformanceFrequency(&hz);
QueryPerformanceCounter(&hzo);
diff --git a/doctest/parts/doctest.cpp b/doctest/parts/doctest.cpp
index 2e2ace35..52333e2e 100644
--- a/doctest/parts/doctest.cpp
+++ b/doctest/parts/doctest.cpp
@@ -281,7 +281,7 @@ typedef timer_large_integer::type ticks_t;
ticks_t getCurrentTicks() { return DOCTEST_CONFIG_GETCURRENTTICKS(); }
#elif defined(DOCTEST_PLATFORM_WINDOWS)
ticks_t getCurrentTicks() {
- static LARGE_INTEGER hz = {0}, hzo = {0};
+ static LARGE_INTEGER hz = { {0} }, hzo = { {0} };
if(!hz.QuadPart) {
QueryPerformanceFrequency(&hz);
QueryPerformanceCounter(&hzo);