diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-03-04 15:52:50 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-03-04 15:52:50 (GMT) |
commit | 3e92ec87dfc451e3f36387bc85f0646c659f2d8f (patch) | |
tree | 8bcf9711d80d9ecfeecbb620c55f4ad488f665b4 /win/tclWinInit.c | |
parent | 8defb7d10b69cdbe3219de6ae2dc169dc8df8bb9 (diff) | |
download | tcl-3e92ec87dfc451e3f36387bc85f0646c659f2d8f.zip tcl-3e92ec87dfc451e3f36387bc85f0646c659f2d8f.tar.gz tcl-3e92ec87dfc451e3f36387bc85f0646c659f2d8f.tar.bz2 |
Fix some gcc(-9) warnings caused by -Wcast-function-type
Diffstat (limited to 'win/tclWinInit.c')
-rw-r--r-- | win/tclWinInit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinInit.c b/win/tclWinInit.c index 02471a6..6ca6a46 100644 --- a/win/tclWinInit.c +++ b/win/tclWinInit.c @@ -168,7 +168,7 @@ TclpInitPlatform(void) */ handle = GetModuleHandleW(L"KERNEL32"); tclWinProcs.cancelSynchronousIo = - (BOOL (WINAPI *)(HANDLE)) GetProcAddress(handle, + (BOOL (WINAPI *)(HANDLE))(void *)GetProcAddress(handle, "CancelSynchronousIo"); } @@ -581,7 +581,7 @@ TclpSetVariables( if (!osInfoInitialized) { HMODULE handle = GetModuleHandleW(L"NTDLL"); int(__stdcall *getversion)(void *) = - (int(__stdcall *)(void *)) GetProcAddress(handle, "RtlGetVersion"); + (int(__stdcall *)(void *))(void *)GetProcAddress(handle, "RtlGetVersion"); osInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW); if (!getversion || getversion(&osInfo)) { GetVersionExW(&osInfo); |