Page MenuHomePhabricator

<dbghelp.h> produces warning (Windows)
Closed, ResolvedPublic

Description

As the new rule "warnings as errors" has been enforced, I ran into a compilation error in berryCTKPluginActivator.cpp where the #include <dbghelp.h> for Windows produces the warning 4091.
Tested on Windows 7 + VS2015.

Event Timeline

@kirchnth had the very same problem today. Not sure if he already pushed the fix but whoever is faster, just do the following:

#ifdef _MSC_VER
#  pragma warning(push)
#  pragma warning(disable: 4091)
#endif

#include <dbghelp.h>

#ifdef _MSC_VER
#  pragma warning(pop)
#endif