From: Derek S. Ray Date: Fri, 10 Apr 2015 21:14:41 +0000 (-0400) Subject: turn off annoying warnings in Visual Studio X-Git-Tag: NetHack-3.6.0_RC01~414^2~41^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8398e30dd1c89bd19f3ec9a8735bb6faff680193;p=nethack turn off annoying warnings in Visual Studio --- diff --git a/src/sp_lev.c b/src/sp_lev.c index 5910cf7cd..60e2ea759 100644 --- a/src/sp_lev.c +++ b/src/sp_lev.c @@ -15,6 +15,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 *)); @@ -5222,4 +5227,8 @@ const char *name; } +#ifdef _MSC_VER +#pragma warning(pop) +#endif + /*sp_lev.c*/