projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
As usual, gcc is better at warnings than MSVC, so here are some
[u/mdw/putty]
/
dialog.c
diff --git
a/dialog.c
b/dialog.c
index
d9d6aaf
..
ff221c0
100644
(file)
--- a/
dialog.c
+++ b/
dialog.c
@@
-6,6
+6,7
@@
#include <assert.h>
#include <limits.h>
#include <stdarg.h>
#include <assert.h>
#include <limits.h>
#include <stdarg.h>
+#include <stdlib.h>
#define DEFINE_INTORPTR_FNS
#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)
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;
}
va_end(ap);
c->radio.nbuttons = i;