linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question on compiler warning
@ 2013-12-31  1:24 Larry Finger
  2013-12-31  9:36 ` Geert Uytterhoeven
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Larry Finger @ 2013-12-31  1:24 UTC (permalink / raw)
  To: linux-wireless; +Cc: Geert Uytterhoeven, LKML

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-01-02 23:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-31  1:24 Question on compiler warning Larry Finger
2013-12-31  9:36 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).