diff options
author | Gerald Combs <gerald@wireshark.org> | 2011-01-28 18:42:49 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2011-01-28 18:42:49 +0000 |
commit | 2b3eddb8429a55a3e1f2646f807e8ef7075cc852 (patch) | |
tree | 0acc1cabf6cfca01328f7a82c88776fdca880b39 /config.nmake | |
parent | 5d4685632076ca7d1155783006d581c4584bf820 (diff) |
Add an option to enable Code Analysis for C/C++ (MSVC's static analyzer).
svn path=/trunk/; revision=35688
Diffstat (limited to 'config.nmake')
-rw-r--r-- | config.nmake | 7 |
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 |