[Intel-wired-lan] [PATCH S18 08/15] ice: Suppress false-positive style issues reported by static analyzer

Bowers, AndrewX andrewx.bowers at intel.com
Fri Apr 26 20:36:02 UTC 2019


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Anirudh Venkataramanan
> Sent: Tuesday, April 16, 2019 10:21 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH S18 08/15] ice: Suppress false-positive style
> issues reported by static analyzer
> 
> From: Bruce Allan <bruce.w.allan at intel.com>
> 
> A recent version of cppcheck falsely reports-
>     Variable ip.hdr is assigned a value that is never used.
> 
> ip is a union so the pointer ip.hdr is actually used when referenced as
> ip.v4 and ip.v6.  Silence these false reports when using cppcheck with the --
> inline-suppr command-line option.
> 
> Signed-off-by: Bruce Allan <bruce.w.allan at intel.com>
> Signed-off-by: Anirudh Venkataramanan
> <anirudh.venkataramanan at intel.com>
> ---
> [Anirudh Venkataramanan <anirudh.venkataramanan at intel.com> cleaned
> up commit message]
> ---
>  drivers/net/ethernet/intel/ice/ice_txrx.c | 1 +
>  1 file changed, 1 insertion(+)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list