From 61ffe9028da84127da81189404afbcd96301bdb9 Mon Sep 17 00:00:00 2001 From: "Derek S. Ray" Date: Mon, 6 Apr 2015 18:56:30 -0400 Subject: [PATCH] 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. --- src/sp_lev.c | 9 +++++++++ win/tty/wintty.c | 4 ---- 2 files changed, 9 insertions(+), 4 deletions(-) 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)