aboutsummaryrefslogtreecommitdiffstats
path: root/config.nmake
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2011-01-28 18:42:49 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2011-01-28 18:42:49 +0000
commit0608efb190d0ebccdb9e5e97f0071281f18eb749 (patch)
tree0acc1cabf6cfca01328f7a82c88776fdca880b39 /config.nmake
parent39582e8f3bcfda313459cbb65e7bc1ecec402ed8 (diff)
Add an option to enable Code Analysis for C/C++ (MSVC's static analyzer).
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35688 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'config.nmake')
-rw-r--r--config.nmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/config.nmake b/config.nmake
index db71cb3370..4de176a9ec 100644
--- a/config.nmake
+++ b/config.nmake
@@ -795,6 +795,13 @@ LOCAL_CFLAGS=$(LOCAL_CFLAGS) /D_BIND_TO_CURRENT_CRT_VERSION=1
LOCAL_CFLAGS= $(LOCAL_CFLAGS) /MP
!ENDIF
+# Optional: Static analysis. Only supported in the full-frontal MSVC editions.
+# http://msdn.microsoft.com/en-us/library/ms182025.aspx
+
+#!IF "$(MSVC_VARIANT)" == "MSVC2010" && "$(WIRESHARK_TARGET_PLATFORM)" == "win32"
+#LOCAL_CFLAGS= $(LOCAL_CFLAGS) /analyze
+#!ENDIF
+
# Linker flags:
# /DEBUG generate debug info
# /PROFILE generate map file(s) for profiling