Disabled compiler warnings for system headers on MSVC. Removed /Wp64; it's a no-op on VS2013 (our minimum supported version).

This commit is contained in:
Pietro Gagliardi 2015-11-27 20:05:48 -05:00
parent d29d36a6cd
commit 99176a1d10
2 changed files with 8 additions and 1 deletions

View File

@ -80,7 +80,7 @@ OFILES := $(OFILES:%=$(OBJDIR)/%.o)
# TODO loads of warnings in the system header files # TODO loads of warnings in the system header files
CFLAGS += \ CFLAGS += \
/Zi \ /Zi \
/W4 /Wp64 \ /W4 \
/wd4100 \ /wd4100 \
/TC \ /TC \
/analyze /bigobj /nologo \ /analyze /bigobj /nologo \

View File

@ -16,6 +16,10 @@
#define _WIN32_WINDOWS 0x0600 /* according to Microsoft's pdh.h */ #define _WIN32_WINDOWS 0x0600 /* according to Microsoft's pdh.h */
#define _WIN32_IE 0x0700 /* according to Microsoft's sdkddkver.h */ #define _WIN32_IE 0x0700 /* according to Microsoft's sdkddkver.h */
#define NTDDI_VERSION 0x06000000 /* according to Microsoft's sdkddkver.h */ #define NTDDI_VERSION 0x06000000 /* according to Microsoft's sdkddkver.h */
// TODO cl.exe spews garbage warnings for system headers; figure out which flags cause it
#ifdef _MSC_VER
#pragma warning(push, 0)
#endif
#include <windows.h> #include <windows.h>
// Microsoft's resource compiler will segfault if we feed it headers it was not designed to handle // Microsoft's resource compiler will segfault if we feed it headers it was not designed to handle
#ifndef RC_INVOKED #ifndef RC_INVOKED
@ -35,3 +39,6 @@
#include <d2d1.h> #include <d2d1.h>
#include <float.h> #include <float.h>
#endif #endif
#ifdef _MSC_VER
#pragma warning(pop)
#endif