Search Linux Wireless

Re: [PATCH] ipw2x00: silence GCC warning for unused variable 'dev'

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

 



Hello Paul,

On 21 September 2012 14:02, Paul Bolle <pebolle@xxxxxxxxxx> wrote:
> Building the libipw component without CONFIG_LIBIPW_DEBUG set triggers this GCC
> warning:
>     drivers/net/wireless/ipw2x00/libipw_wx.c:526:21: warning: unused variable 'dev' [-Wunused-variable]
>
> The cause of this warning is that, without CONFIG_LIBIPW_DEBUG set,
> LIBIPW_DEBUG_WX compiles away. Fix it by substituting ieee->dev for (its
> equivalent) dev.
>
> Signed-off-by: Paul Bolle <pebolle@xxxxxxxxxx>
> ---
> 0) I noticed this warning while building v3.6-rc6 on current Fedora 17,
> using Fedora's default config.
>
> 1) Compile tested only (by just compiling libipw_wx.o).
>
>  drivers/net/wireless/ipw2x00/libipw_wx.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Looks fine, thanks.

Stanislav.
--
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