]> granicus.if.org Git - nethack/commitdiff
turn off annoying warnings in Visual Studio
authorDerek S. Ray <derekray@gmail.com>
Fri, 10 Apr 2015 21:14:41 +0000 (17:14 -0400)
committerDerek S. Ray <derekray@gmail.com>
Fri, 10 Apr 2015 21:14:41 +0000 (17:14 -0400)
src/sp_lev.c

index 5910cf7cde3ed520c0e76717a33ec4622157fdfa..60e2ea7599d815d1823181d4b9f2e66ff89db06b 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 *));
@@ -5222,4 +5227,8 @@ const char *name;
 }
 
 
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif
+
 /*sp_lev.c*/