From 9acbf9f39bb38e9a4a9cd1e48f43af84425adff1 Mon Sep 17 00:00:00 2001 From: Luis Fernandez Date: Wed, 14 Aug 2019 22:40:28 -0500 Subject: HB Implement Static Analysis with cppcheck Inline cppcheck-suppressions for false positives. HB (which pulls in files edited here) will start having the option to implement cppcheck. Change-Id: I08adcf3a344295621c5730fc04516f806c6b85bd RTC: 201451 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/82267 Tested-by: FSP CI Jenkins Tested-by: Jenkins Server Tested-by: PPE CI Tested-by: Hostboot CI Tested-by: HWSV CI Reviewed-by: Ilya Smirnov Reviewed-by: Glenn Miles Reviewed-by: Nicholas E Bofferding Reviewed-by: Jennifer A Stofer Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/82297 Reviewed-by: RAJA DAS --- src/import/chips/p9/xip/p9_xip_image.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/import/chips/p9/xip/p9_xip_image.h b/src/import/chips/p9/xip/p9_xip_image.h index 454ffa72..1b21e309 100644 --- a/src/import/chips/p9/xip/p9_xip_image.h +++ b/src/import/chips/p9/xip/p9_xip_image.h @@ -5,7 +5,7 @@ /* */ /* OpenPOWER sbe Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2015,2018 */ +/* Contributors Listed Below - COPYRIGHT 2015,2019 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -1619,6 +1619,7 @@ p9_xip_decode_toc_dump(void* i_image, void* i_dump, .macro .xip_toc, index:req, type:req, address:req, elements=1 .if (((\type) < 1) || ((\type) > P9_XIP_MAX_TYPE_INDEX)) + // cppcheck-suppress syntaxError .error ".xip_toc : Illegal type index" .endif -- cgit v1.2.1