]> 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, 17 Sep 2021 21:24:54 +0000 (14:24 -0700)
commit089cdb3990f47be3cd34d1a57567a2e89c917929
tree4c639b13a26b557e37f20eb450f8431fd5a7b253
parentecf2a89a997ad4a14339b6a2f544e44b422620a0
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
sys/dev/e1000/e1000_82543.c
sys/dev/e1000/e1000_ich8lan.c
sys/dev/e1000/e1000_phy.c