From fedd08f15c66bbb303b3c8af5df5c79c6c534bff Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 26 Jul 2015 13:50:16 -0400 Subject: [PATCH] Cleared compiler error due to use of "LARGE_INTEGER freq = { .QuadPart = 0 };". 32-bit and 64-bit compilers accept "{ {0,0} }". Note the original code was OK, and we were probably woking around a GCC issue --- hrtimer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hrtimer.cpp b/hrtimer.cpp index 81ac4eb9..daa497a6 100644 --- a/hrtimer.cpp +++ b/hrtimer.cpp @@ -78,7 +78,8 @@ TimerWord Timer::GetCurrentTimerValue() TimerWord Timer::TicksPerSecond() { #if defined(CRYPTOPP_WIN32_AVAILABLE) - static LARGE_INTEGER freq = { .QuadPart = 0 }; + // Hack to silence GCC under MinGW + static LARGE_INTEGER freq = { {0,0} }; if (freq.QuadPart == 0) { if (!QueryPerformanceFrequency(&freq))