From fbe7fc85b27e64f8c059da4a01c16dfb4db483e4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 29 Jan 2016 22:35:17 +0100 Subject: [PATCH] Suppress harmless warning in a standard header with VC14 imagehlp.h from 8.1 SDK contains an extraneous "typedef" in an enum declaration which results in several warnings when building, avoid them. --- include/wx/msw/debughlp.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/wx/msw/debughlp.h b/include/wx/msw/debughlp.h index 49156fbb9f..b224c19a23 100644 --- a/include/wx/msw/debughlp.h +++ b/include/wx/msw/debughlp.h @@ -13,7 +13,22 @@ #include "wx/dynlib.h" #include "wx/msw/wrapwin.h" + +#ifdef __VISUALC__ + // Disable a warning that we can do nothing about: we get it at least for + // imagehlp.h from 8.1 Windows kit when using VC14. + #pragma warning(push) + + // 'typedef ': ignored on left of '' when no variable is declared + #pragma warning(disable:4091) +#endif + #include + +#ifdef __VISUALC__ + #pragma warning(pop) +#endif + #include "wx/msw/private.h" // wxUSE_DBGHELP can be predefined on the compiler command line to force using