Fix two compile warnings in emcc.c.

Reported by a user, who didn't say what version of Emscripten they
were using but it must not be the same as mine.
This commit is contained in:
Simon Tatham
2014-11-30 17:00:45 +00:00
parent f806528a30
commit 5b367167af

3
emcc.c
View File

@ -48,6 +48,7 @@
*/ */
#include <assert.h> #include <assert.h>
#include <stdio.h>
#include <string.h> #include <string.h>
#include <stdarg.h> #include <stdarg.h>
@ -793,8 +794,6 @@ int main(int argc, char **argv)
js_remove_type_dropdown(); js_remove_type_dropdown();
have_presets_dropdown = FALSE; have_presets_dropdown = FALSE;
} else { } else {
int preset;
presets = snewn(npresets, game_params *); presets = snewn(npresets, game_params *);
for (i = 0; i < npresets; i++) { for (i = 0; i < npresets; i++) {
char *name; char *name;