ref: 5b367167af9f7eaa2c06dba4f6d6b69e1f37d859
parent: f806528a309d62f836d39ad9cc703e7592c9f68b
author: Simon Tatham <anakin@pobox.com>
date: Sun Nov 30 12:00:45 EST 2014
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.
--- a/emcc.c
+++ b/emcc.c
@@ -48,6 +48,7 @@
*/
#include <assert.h>
+#include <stdio.h>
#include <string.h>
#include <stdarg.h>
@@ -793,8 +794,6 @@
js_remove_type_dropdown();
have_presets_dropdown = FALSE;
} else {
- int preset;
-
presets = snewn(npresets, game_params *);
for (i = 0; i < npresets; i++) {
char *name;