From: Derek S. Ray Date: Mon, 6 Apr 2015 22:56:30 +0000 (-0400) Subject: re-fix wintty.c; disable warnings on sp_lev.c X-Git-Tag: NetHack-3.6.0_RC01~414^2~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=61ffe9028da84127da81189404afbcd96301bdb9;p=nethack re-fix wintty.c; disable warnings on sp_lev.c don't ask me why wintty.c was actually compiling before. also, make studio shut up about all the long-to-short stuff. --- diff --git a/src/sp_lev.c b/src/sp_lev.c index d382d3a75..56100e073 100644 --- a/src/sp_lev.c +++ b/src/sp_lev.c @@ -14,6 +14,11 @@ #include "sp_lev.h" +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable:4244) +#endif + typedef void (*select_iter_func)(int, int, genericptr_t); extern void FDECL(mkmap, (lev_init *)); @@ -5218,4 +5223,8 @@ const char *name; } +#ifdef _MSC_VER +#pragma warning(pop) +#endif + /*sp_lev.c*/ diff --git a/win/tty/wintty.c b/win/tty/wintty.c index af42dc457..16633109c 100644 --- a/win/tty/wintty.c +++ b/win/tty/wintty.c @@ -2209,10 +2209,6 @@ tty_putstr(window, attr, str) } } - } - break; - } -} void tty_display_file(fname, complain)