mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-06 22:12:47 -05:00
A bunch of further warning fixes in the Windows code.
These ones are stylistic rather than potential bugs: mostly signedness of char pointers in cases where they clearly aren't going to cause the wrong thing to actually happen, and one thing in winsecur.c where clang would have preferred an extra pair of braces around some initialisers but it's legal with or without. But since some of clang's warnings turn out to be quite useful, it seems worth silencing these harmless ones so as to be able to see the rest.
This commit is contained in:
@ -3131,7 +3131,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
|
||||
*/
|
||||
term_seen_key_event(term);
|
||||
if (ldisc)
|
||||
ldisc_send(ldisc, buf, len, 1);
|
||||
ldisc_send(ldisc, (char *)buf, len, 1);
|
||||
show_mouseptr(0);
|
||||
}
|
||||
}
|
||||
@ -3199,7 +3199,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
|
||||
|
||||
case WM_IME_CHAR:
|
||||
if (wParam & 0xFF00) {
|
||||
unsigned char buf[2];
|
||||
char buf[2];
|
||||
|
||||
buf[1] = wParam;
|
||||
buf[0] = wParam >> 8;
|
||||
@ -4604,7 +4604,7 @@ static int TranslateKey(UINT message, WPARAM wParam, LPARAM lParam,
|
||||
break;
|
||||
}
|
||||
if (xkey) {
|
||||
p += format_arrow_key(p, term, xkey, shift_state);
|
||||
p += format_arrow_key((char *)p, term, xkey, shift_state);
|
||||
return p - output;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user