Skip to content

Commit

Permalink
osdep/threads-win32: cast function type directly to avoid warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kasper93 committed Jun 10, 2024
1 parent 6a4b173 commit 9b0e3b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osdep/threads-win32.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ static inline void mp_thread_set_name(const char *name)
HMODULE kernel32 = GetModuleHandleW(L"kernel32.dll");
if (!kernel32)
return;
pSetThreadDescription = (void *) GetProcAddress(kernel32, "SetThreadDescription");
pSetThreadDescription = (__typeof__(pSetThreadDescription)) GetProcAddress(kernel32, "SetThreadDescription");
if (!pSetThreadDescription)
return;
#else
Expand Down

0 comments on commit 9b0e3b3

Please sign in to comment.