* Re: wireless: remove some (bogus?) 'may be used uninitialized' warnings
@ 2009-04-28 21:51 Johannes Berg
0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2009-04-28 21:51 UTC (permalink / raw)
To: John Linville; +Cc: linux-wireless
[-- Attachment #1: Type: text/plain, Size: 920 bytes --]
Hi John,
commit aa61eccbbd46faa89a7ebb06e642779a8fffa2c2
Author: John W. Linville <linville@tuxdriver.com>
Date: Fri Apr 24 15:35:42 2009 -0400
wireless: remove some (bogus?) 'may be used uninitialized' warnings
net/mac80211/tx.c: In function ‘ieee80211_tx_h_select_key’:
net/mac80211/tx.c:448: warning: ‘key’ may be used uninitialized in this function
This warning is totally _wrong_, and I would prefer you reverted this
commit because otherwise we may miss actually valid warnings when
editing those functions.
The fact that you get this warning is due to the, IMHO entirely stupid,
CONFIG_TRACE_BRANCH_PROFILING, which redefines if() as a macro. As one
would expect according to the GIGO principle [1], this causes the
compiler some problems. Can you turn that off in your config instead? :)
johannes
[1] http://en.wikipedia.org/wiki/Garbage_In,_Garbage_Out
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-28 21:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-28 21:51 wireless: remove some (bogus?) 'may be used uninitialized' warnings Johannes Berg
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).