summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/AppHdr.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/AppHdr.h b/crawl-ref/source/AppHdr.h
index 5787f9aaf6..97ceda1b6a 100644
--- a/crawl-ref/source/AppHdr.h
+++ b/crawl-ref/source/AppHdr.h
@@ -21,6 +21,11 @@
#include "platform.h"
+#ifdef TARGET_COMPILER_VC
+/* Disable warning about the way VC handles the throw() specifier */
+#pragma warning (disable: 4290)
+#endif
+
// The maximum memory that the user-script Lua interpreter can
// allocate, in kilobytes. This limit is enforced to prevent
// badly-written or malicious user scripts from consuming too much
@@ -522,7 +527,6 @@ inline void UNUSED(const volatile T &)
#ifdef TARGET_COMPILER_VC
#include "libw32c.h"
-#pragma warning (disable: 4290)
#endif
#endif