]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
e1000: clean LTO warnings
authorAndrzej Ostruszka <aostruszka@marvell.com>
Thu, 7 Nov 2019 15:03:15 +0000 (16:03 +0100)
committerKevin Bowling <kbowling@FreeBSD.org>
Fri, 24 Sep 2021 01:40:13 +0000 (18:40 -0700)
commitf4d49d0a6cd01a2004dc83fce695270615c6fe74
treed803a7e5ee4731d4c1c9435ef517c268f3669122
parentdf90074502a0034fd54c84da48ce632d4fade6f1
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

(cherry picked from commit 089cdb3990f47be3cd34d1a57567a2e89c917929)
sys/dev/e1000/e1000_82543.c
sys/dev/e1000/e1000_ich8lan.c
sys/dev/e1000/e1000_phy.c