diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-03-09 15:50:15 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-03-09 15:50:15 (GMT) |
commit | 2b48aa9710925f84b5ffac8a3682df9e3a7994ed (patch) | |
tree | 17281cbb6a3accb6d4be0ec0aeb93cc2e5ee8bcd /win/tkWinX.c | |
parent | a32c08daeccda43a3dda2be7a91715a79e1e83e7 (diff) | |
download | tk-2b48aa9710925f84b5ffac8a3682df9e3a7994ed.zip tk-2b48aa9710925f84b5ffac8a3682df9e3a7994ed.tar.gz tk-2b48aa9710925f84b5ffac8a3682df9e3a7994ed.tar.bz2 |
Eliminate a few (harmless) gcc(-9) warnings on Windows and Cygwin.
Diffstat (limited to 'win/tkWinX.c')
-rw-r--r-- | win/tkWinX.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tkWinX.c b/win/tkWinX.c index d2af130..6055bfc 100644 --- a/win/tkWinX.c +++ b/win/tkWinX.c @@ -139,8 +139,8 @@ TkGetServerInfo( if (!buffer[0]) { HANDLE handle = GetModuleHandleW(L"NTDLL"); - int(__stdcall *getversion)(void *) = - (int(__stdcall *)(void *))GetProcAddress(handle, "RtlGetVersion"); + int(__stdcall *getversion)(void *) = (int(__stdcall *)(void *)) + (void *)GetProcAddress(handle, "RtlGetVersion"); os.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW); if (!getversion || getversion(&os)) { GetVersionExW(&os); |