From d671d1fa48dbb3f22b68c1d67914c55ba1d58454 Mon Sep 17 00:00:00 2001 From: Sami Mujawar Date: Fri, 16 Aug 2019 16:24:22 +0100 Subject: DynamicTablesPkg: Option for VS2017 static code analysis Add build option STATIC_ANALYSIS to enable VS2017 static code analysis. Signed-off-by: Sami Mujawar Reviewed-by: Alexei Fedorov --- DynamicTablesPkg/DynamicTablesPkg.dsc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'DynamicTablesPkg') diff --git a/DynamicTablesPkg/DynamicTablesPkg.dsc b/DynamicTablesPkg/DynamicTablesPkg.dsc index 19beaaf370..02f04447ff 100644 --- a/DynamicTablesPkg/DynamicTablesPkg.dsc +++ b/DynamicTablesPkg/DynamicTablesPkg.dsc @@ -40,3 +40,10 @@ [BuildOptions] *_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES + +!ifdef STATIC_ANALYSIS + # Check all rules + # Inhibit C6305: Potential mismatch between sizeof and countof quantities. + *_VS2017_*_CC_FLAGS = /wd6305 /analyze +!endif + -- cgit v1.2.3