Search Linux Wireless

Re: [PATCH] mac80211: avoid "uninitialised variable" warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2014-05-20 at 09:36 +0200, Antonio Quartulli wrote:
> gcc is not able to correlate chan_pwr and have_chan_pwr
> in ieee80211_handle_pwr_constr(), therefore it throws a
> warning about chan_pwr being potentially used uninitialised
> even if this is not true.
> 
> However, initialise chan_pwr to 0 to silent the warning.

I don't see any warnings (even with -Wmaybe-uninitialized added
manually) and don't like gratuitous initializations, so I'll drop this.

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux