[Bf-blender-cvs] [7f1513efc55] master: Cleanup: Fix warning in blenlib with MSVC
Ray Molenkamp
noreply at git.blender.org
Mon May 27 16:57:47 CEST 2019
Commit: 7f1513efc55180a75e1f4dc3010e1b3b391dbdfb
Author: Ray Molenkamp
Date: Mon May 27 08:57:39 2019 -0600
Branches: master
https://developer.blender.org/rB7f1513efc55180a75e1f4dc3010e1b3b391dbdfb
Cleanup: Fix warning in blenlib with MSVC
Some versions of the Windows SDK headers have a dbghelp.h that will emit
C4091 warnings, repress them just this once, since the warn can be helpful
in other places.
===================================================================
M source/blender/blenlib/intern/system.c
===================================================================
diff --git a/source/blender/blenlib/intern/system.c b/source/blender/blenlib/intern/system.c
index f7892f5c224..88f2e2625e8 100644
--- a/source/blender/blenlib/intern/system.c
+++ b/source/blender/blenlib/intern/system.c
@@ -33,7 +33,10 @@
#if defined(WIN32)
# include <intrin.h>
# include <windows.h>
+# pragma warning(push)
+# pragma warning(disable : 4091)
# include <dbghelp.h>
+# pragma warning(pop)
#else
# include <execinfo.h>
# include <unistd.h>
More information about the Bf-blender-cvs
mailing list