From: Simon Tatham Date: Sun, 30 Nov 2014 17:00:45 +0000 (+0000) Subject: Fix two compile warnings in emcc.c. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=5b367167af9f7eaa2c06dba4f6d6b69e1f37d859;p=sgt-puzzles.git 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. --- diff --git a/emcc.c b/emcc.c index 1c07a37..f9b9be9 100644 --- a/emcc.c +++ b/emcc.c @@ -48,6 +48,7 @@ */ #include +#include #include #include @@ -793,8 +794,6 @@ int main(int argc, char **argv) js_remove_type_dropdown(); have_presets_dropdown = FALSE; } else { - int preset; - presets = snewn(npresets, game_params *); for (i = 0; i < npresets; i++) { char *name;