X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwinctrls.c;h=a08771775ec18b8cdc4ea416802be110c262bce9;hb=1de7240eb88fa24a8532ded116b4ec72dd213008;hp=9bee927472d5fb36bd7e1a653682bd6cbe99e6ba;hpb=3ba1a7cf4b469ceded01c33ec5b76b7e8714d035;p=PuTTY.git diff --git a/windows/winctrls.c b/windows/winctrls.c index 9bee9274..a0877177 100644 --- a/windows/winctrls.c +++ b/windows/winctrls.c @@ -267,10 +267,9 @@ void radioline(struct ctlpos *cp, char *text, int id, int nacross, ...) nbuttons = 0; while (1) { char *btext = va_arg(ap, char *); - int bid; if (!btext) break; - bid = va_arg(ap, int); + (void) va_arg(ap, int); /* id */ nbuttons++; } va_end(ap); @@ -299,10 +298,9 @@ void bareradioline(struct ctlpos *cp, int nacross, ...) nbuttons = 0; while (1) { char *btext = va_arg(ap, char *); - int bid; if (!btext) break; - bid = va_arg(ap, int); + (void) va_arg(ap, int); /* id */ } va_end(ap); buttons = snewn(nbuttons, struct radio); @@ -330,10 +328,9 @@ void radiobig(struct ctlpos *cp, char *text, int id, ...) nbuttons = 0; while (1) { char *btext = va_arg(ap, char *); - int bid; if (!btext) break; - bid = va_arg(ap, int); + (void) va_arg(ap, int); /* id */ } va_end(ap); buttons = snewn(nbuttons, struct radio); @@ -372,7 +369,6 @@ void checkbox(struct ctlpos *cp, char *text, int id) char *staticwrap(struct ctlpos *cp, HWND hwnd, char *text, int *lines) { HDC hdc = GetDC(hwnd); - int lpx = GetDeviceCaps(hdc, LOGPIXELSX); int width, nlines, j; INT *pwidths, nfit; SIZE size; @@ -2406,7 +2402,7 @@ void dlg_beep(void *dlg) MessageBeep(0); } -void dlg_error_msg(void *dlg, char *msg) +void dlg_error_msg(void *dlg, const char *msg) { struct dlgparam *dp = (struct dlgparam *)dlg; MessageBox(dp->hwnd, msg,