From d62f7f431c3865e8bef32e38e641736e42d91bd5 Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Sun, 19 May 2019 23:47:58 +0200 Subject: [PATCH] disable warnings for dbghelp.h --- src/dbg/_plugin_types.h | 6 ++++++ src/dbg/dbghelp_safe.h | 3 +++ src/exe/crashdump.cpp | 3 +++ src/launcher/x64dbg_launcher.cpp | 3 +++ 4 files changed, 15 insertions(+) diff --git a/src/dbg/_plugin_types.h b/src/dbg/_plugin_types.h index 55bcfcaf..db3264c0 100644 --- a/src/dbg/_plugin_types.h +++ b/src/dbg/_plugin_types.h @@ -5,14 +5,20 @@ #include "_global.h" #include "jansson/jansson.h" +#pragma warning(push) +#pragma warning(disable:4091) #include +#pragma warning(pop) #else #ifdef __GNUC__ #include "dbghelp/dbghelp.h" #else +#pragma warning(push) +#pragma warning(disable:4091) #include +#pragma warning(pop) #endif // __GNUC__ #ifndef deflen diff --git a/src/dbg/dbghelp_safe.h b/src/dbg/dbghelp_safe.h index 8ff078cc..2e012142 100644 --- a/src/dbg/dbghelp_safe.h +++ b/src/dbg/dbghelp_safe.h @@ -4,7 +4,10 @@ #ifdef __GNUC__ #include "dbghelp\dbghelp.h" #else +#pragma warning(push) +#pragma warning(disable:4091) #include +#pragma warning(pop) #endif //__GNUC__ void SafeDbghelpInitialize(); diff --git a/src/exe/crashdump.cpp b/src/exe/crashdump.cpp index 9e8b5ebf..496bb920 100644 --- a/src/exe/crashdump.cpp +++ b/src/exe/crashdump.cpp @@ -1,5 +1,8 @@ #include +#pragma warning(push) +#pragma warning(disable:4091) #include +#pragma warning(pop) #include #include #include diff --git a/src/launcher/x64dbg_launcher.cpp b/src/launcher/x64dbg_launcher.cpp index 915e844b..fba567d3 100644 --- a/src/launcher/x64dbg_launcher.cpp +++ b/src/launcher/x64dbg_launcher.cpp @@ -4,7 +4,10 @@ #include #include #include +#pragma warning(push) +#pragma warning(disable:4091) #include +#pragma warning(pop) #include #include "../exe/resource.h"