mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-04 21:12:47 -05:00
Fix a few compiler warnings from MinGW.
A few variables that gcc couldn't tell I'd initialised on all the important paths, a variable that didn't really need to be there anyway, and yet another use of GET_WINDOWS_FUNCTION_NO_TYPECHECK.
This commit is contained in:
@ -290,7 +290,11 @@ void sk_init(void)
|
||||
|
||||
GET_WINDOWS_FUNCTION(winsock_module, WSAAsyncSelect);
|
||||
GET_WINDOWS_FUNCTION(winsock_module, WSAEventSelect);
|
||||
GET_WINDOWS_FUNCTION(winsock_module, select);
|
||||
/* We don't type-check select because at least some MinGW versions
|
||||
* of the Windows API headers seem to disagree with the
|
||||
* documentation on whether the 'struct timeval *' pointer is
|
||||
* const or not. */
|
||||
GET_WINDOWS_FUNCTION_NO_TYPECHECK(winsock_module, select);
|
||||
GET_WINDOWS_FUNCTION(winsock_module, WSAGetLastError);
|
||||
GET_WINDOWS_FUNCTION(winsock_module, WSAEnumNetworkEvents);
|
||||
GET_WINDOWS_FUNCTION(winsock_module, WSAStartup);
|
||||
|
Reference in New Issue
Block a user