HomeFreeBSD

e1000: clean LTO warnings

Description

e1000: clean LTO warnings

During LTO build compiler reports some 'false positive' warnings about
variables being possibly used uninitialized. This patch silences these
warnings.

Exemplary compiler warning to suppress (with LTO enabled):
error: 'link' may be used uninitialized in this function
[-Werror=maybe-uninitialized]

if (link) {

Signed-off-by: Andrzej Ostruszka <aostruszka@marvell.com>

Approved by: imp
Obtained from: DPDK (46136031f19107f4e9b6b3a952cb7f57877a7f0f)
MFC after: 1 week

Details

Provenance
Andrzej Ostruszka <aostruszka@marvell.com>Authored on Nov 7 2019, 3:03 PM
Kevin Bowling <kbowling@FreeBSD.org>Committed on Sep 17 2021, 9:24 PM
Parents
rGecf2a89a997a: e1000: fix multicast setting in VF
Branches
Unknown
Tags
Unknown