]> granicus.if.org Git - nethack/commitdiff
re-fix wintty.c; disable warnings on sp_lev.c
authorDerek S. Ray <derekray@gmail.com>
Mon, 6 Apr 2015 22:56:30 +0000 (18:56 -0400)
committerDerek S. Ray <derekray@gmail.com>
Mon, 6 Apr 2015 22:56:30 +0000 (18:56 -0400)
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
win/tty/wintty.c

index d382d3a75dc276e26802bbc8c1a1cc72a44d97f3..56100e073e0bde10220e936378c90fccd32eaca1 100644 (file)
 
 #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*/
index af42dc4579c5c6b766647622cf89c01ccab2204e..16633109c60397d210e7450ed07943efff7ee7c0 100644 (file)
@@ -2209,10 +2209,6 @@ tty_putstr(window, attr, str)
     }
 }
 
-       }
-       break;
-    }
-}
 
 void
 tty_display_file(fname, complain)