diff options
author | Sami Mujawar <sami.mujawar@arm.com> | 2019-08-16 16:24:22 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-03-29 16:53:35 +0000 |
commit | d671d1fa48dbb3f22b68c1d67914c55ba1d58454 (patch) | |
tree | 2a7d6075cab764234d3c3b599cd9d36765a45f22 /DynamicTablesPkg | |
parent | 5650f307b3042d544da532ad12e0be1d921a8d6c (diff) | |
download | edk2-d671d1fa48dbb3f22b68c1d67914c55ba1d58454.tar.gz |
DynamicTablesPkg: Option for VS2017 static code analysis
Add build option STATIC_ANALYSIS to enable VS2017 static
code analysis.
Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
Diffstat (limited to 'DynamicTablesPkg')
-rw-r--r-- | DynamicTablesPkg/DynamicTablesPkg.dsc | 7 |
1 files changed, 7 insertions, 0 deletions
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
+
|