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:
5
dialog.c
5
dialog.c
@ -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;
|
||||
|
Reference in New Issue
Block a user