From 3513c37f978777fbc41a617c20c2fdbeefba0eda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Fri, 17 Jan 2025 17:05:57 +0100 Subject: [PATCH] clapper-app: Fix declaration-after-statement warning --- src/bin/clapper-app/clapper-app-utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/clapper-app/clapper-app-utils.c b/src/bin/clapper-app/clapper-app-utils.c index 202e4255..74b1308e 100644 --- a/src/bin/clapper-app/clapper-app-utils.c +++ b/src/bin/clapper-app/clapper-app-utils.c @@ -61,9 +61,10 @@ clapper_app_utils_win_enforce_hi_res_clock (void) { #ifdef HAVE_WIN_PROCESS_THREADS_API PROCESS_POWER_THROTTLING_STATE PowerThrottling; - RtlZeroMemory (&PowerThrottling, sizeof (PowerThrottling)); gboolean success; + RtlZeroMemory (&PowerThrottling, sizeof (PowerThrottling)); + PowerThrottling.Version = PROCESS_POWER_THROTTLING_CURRENT_VERSION; PowerThrottling.ControlMask = PROCESS_POWER_THROTTLING_IGNORE_TIMER_RESOLUTION; PowerThrottling.StateMask = 0; // Always honor timer resolution requests