1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-16 02:27:32 -05:00

As usual, gcc is better at warnings than MSVC, so here are some

pedantic fiddlings with the new config-box stuff to cure some.

[originally from svn r2909]
This commit is contained in:
Simon Tatham
2003-03-06 12:41:39 +00:00
parent 616c837cf0
commit 8228cd2d72
4 changed files with 45 additions and 21 deletions

View File

@ -6,6 +6,7 @@
#include <assert.h>
#include <limits.h>
#include <stdarg.h>
#include <stdlib.h>
#define DEFINE_INTORPTR_FNS
@ -293,8 +294,8 @@ union control *ctrl_radiobuttons(struct controlset *s, char *label,
while (va_arg(ap, char *) != NULL) {
i++;
if (c->radio.shortcut == NO_SHORTCUT)
va_arg(ap, int); /* char promotes to int in arg lists */
va_arg(ap, intorptr);
(void)va_arg(ap, int); /* char promotes to int in arg lists */
(void)va_arg(ap, intorptr);
}
va_end(ap);
c->radio.nbuttons = i;