mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-26 01:32:25 +00: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:
parent
0603256964
commit
f4314b8d66
@ -354,7 +354,7 @@ static void console_data_untrusted(HANDLE hout, const char *data, int len)
|
|||||||
|
|
||||||
int console_get_userpass_input(prompts_t *p)
|
int console_get_userpass_input(prompts_t *p)
|
||||||
{
|
{
|
||||||
HANDLE hin, hout;
|
HANDLE hin = INVALID_HANDLE_VALUE, hout = INVALID_HANDLE_VALUE;
|
||||||
size_t curr_prompt;
|
size_t curr_prompt;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1016,7 +1016,7 @@ void update_specials_menu(void *frontend)
|
|||||||
|
|
||||||
static void update_mouse_pointer(void)
|
static void update_mouse_pointer(void)
|
||||||
{
|
{
|
||||||
LPTSTR curstype;
|
LPTSTR curstype = NULL;
|
||||||
int force_visible = FALSE;
|
int force_visible = FALSE;
|
||||||
static int forced_visible = FALSE;
|
static int forced_visible = FALSE;
|
||||||
switch (busy_status) {
|
switch (busy_status) {
|
||||||
|
@ -290,7 +290,11 @@ void sk_init(void)
|
|||||||
|
|
||||||
GET_WINDOWS_FUNCTION(winsock_module, WSAAsyncSelect);
|
GET_WINDOWS_FUNCTION(winsock_module, WSAAsyncSelect);
|
||||||
GET_WINDOWS_FUNCTION(winsock_module, WSAEventSelect);
|
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, WSAGetLastError);
|
||||||
GET_WINDOWS_FUNCTION(winsock_module, WSAEnumNetworkEvents);
|
GET_WINDOWS_FUNCTION(winsock_module, WSAEnumNetworkEvents);
|
||||||
GET_WINDOWS_FUNCTION(winsock_module, WSAStartup);
|
GET_WINDOWS_FUNCTION(winsock_module, WSAStartup);
|
||||||
|
@ -291,12 +291,12 @@ static void serial_free(void *handle)
|
|||||||
static void serial_reconfig(void *handle, Conf *conf)
|
static void serial_reconfig(void *handle, Conf *conf)
|
||||||
{
|
{
|
||||||
Serial serial = (Serial) handle;
|
Serial serial = (Serial) handle;
|
||||||
const char *err;
|
|
||||||
|
|
||||||
err = serial_configure(serial, serial->port, conf);
|
serial_configure(serial, serial->port, conf);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* FIXME: what should we do if err returns something?
|
* FIXME: what should we do if that call returned a non-NULL error
|
||||||
|
* message?
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user