mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 03:52:49 -05:00
Make the w32old build warning-clean.
Normally I never notice warnings in this build, because it runs inside bob and dumps all the warnings in a part of the build log I never look at. But I've had these fixes lying around for a while and should commit them. They're benign: all we need is an explicit declaration of strtoumax to replace the one that stdlib.h doesn't provide, and a couple more of those annoying NO_TYPECHECK modifiers on GET_WINDOWS_FUNCTION calls.
This commit is contained in:
@ -247,7 +247,7 @@ void sk_init(void)
|
||||
if (GetProcAddress(winsock_module, "getaddrinfo") != NULL) {
|
||||
GET_WINDOWS_FUNCTION(winsock_module, getaddrinfo);
|
||||
GET_WINDOWS_FUNCTION(winsock_module, freeaddrinfo);
|
||||
GET_WINDOWS_FUNCTION(winsock_module, getnameinfo);
|
||||
GET_WINDOWS_FUNCTION_NO_TYPECHECK(winsock_module, getnameinfo);
|
||||
/* This function would fail its type-check if we did one,
|
||||
* because the VS header file provides an inline definition
|
||||
* which is __cdecl instead of WINAPI. */
|
||||
@ -258,8 +258,8 @@ void sk_init(void)
|
||||
if (wship6_module) {
|
||||
GET_WINDOWS_FUNCTION(wship6_module, getaddrinfo);
|
||||
GET_WINDOWS_FUNCTION(wship6_module, freeaddrinfo);
|
||||
GET_WINDOWS_FUNCTION(wship6_module, getnameinfo);
|
||||
/* See comment above about type check */
|
||||
GET_WINDOWS_FUNCTION_NO_TYPECHECK(wship6_module, getnameinfo);
|
||||
GET_WINDOWS_FUNCTION_NO_TYPECHECK(winsock_module, gai_strerror);
|
||||
} else {
|
||||
}
|
||||
|
Reference in New Issue
Block a user