Skip to content

Commit

Permalink
clapper-app: Fix declaration-after-statement warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafostar committed Jan 17, 2025
1 parent 2225cc6 commit 3513c37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bin/clapper-app/clapper-app-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3513c37

Please sign in to comment.