From: Larry Finger <Larry.Finger@lwfinger.net>
To: linux-wireless <linux-wireless@vger.kernel.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Question on compiler warning
Date: Mon, 30 Dec 2013 19:24:51 -0600 [thread overview]
Message-ID: <52C21CE3.3020402@lwfinger.net> (raw)
In his regular article entitled Build regressions/improvements in v3.13-rc6"
(http://lkml.indiana.edu/hypermail/linux/kernel/1312.3/01550.html), Geert
Uytterhoeven reports the following warning regression:
+ /scratch/kisskb/src/drivers/net/wireless/b43/phy_n.c: warning: 'val_addr' may
be used uninitialized in this function [-Wuninitialized]: => 178:21
This warning does not show up on any of my compilers, and it should not as the
initialization and usage of that variable both take place in conditional
branches that are testing exactly the same pointer.
Despite the fact that the warning is bogus, should a patch be submitted to clear
it? I lean toward "no" as an answer because that would mask the warning if there
were some future change that screwed up the flow; however, I wanted to check
with the community.
Larry
next reply other threads:[~2013-12-31 1:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-31 1:24 Larry Finger [this message]
2013-12-31 9:36 ` Question on compiler warning Geert Uytterhoeven
2013-12-31 10:56 ` Mark Cave-Ayland
2013-12-31 19:28 ` Larry Finger
2014-01-02 21:56 ` David Rientjes
2014-01-02 22:14 ` Larry Finger
2014-01-02 23:40 ` David Rientjes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52C21CE3.3020402@lwfinger.net \
--to=larry.finger@lwfinger.net \
--cc=geert@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox