Skip to content

Commit ed71710

Browse files
committed
Silence MSVC warning about unreferenced formal parameter.
Closes #382.
1 parent 36f63a1 commit ed71710

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/win32/thread.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,10 +577,18 @@ namespace boost
577577
} Reason;
578578
} REASON_CONTEXT, *PREASON_CONTEXT;
579579
typedef BOOL (WINAPI *setwaitabletimerex_t)(HANDLE, const LARGE_INTEGER *, LONG, PTIMERAPCROUTINE, LPVOID, PREASON_CONTEXT, ULONG);
580+
#ifdef _MSC_VER
581+
#pragma warning(push)
582+
#pragma warning(disable: 4100) // unreferenced formal parameter
583+
#endif
580584
static inline BOOL WINAPI SetWaitableTimerEx_emulation(HANDLE hTimer, const LARGE_INTEGER *lpDueTime, LONG lPeriod, PTIMERAPCROUTINE pfnCompletionRoutine, LPVOID lpArgToCompletionRoutine, PREASON_CONTEXT WakeContext, ULONG TolerableDelay)
581585
{
582586
return SetWaitableTimer(hTimer, lpDueTime, lPeriod, pfnCompletionRoutine, lpArgToCompletionRoutine, FALSE);
583587
}
588+
#ifdef _MSC_VER
589+
#pragma warning(pop)
590+
#endif
591+
584592
#ifdef _MSC_VER
585593
#pragma warning(push)
586594
#pragma warning(disable: 6387) // MSVC sanitiser warns that GetModuleHandleA() might fail

0 commit comments

Comments
 (0)