Search Linux Wireless

Re: [PATCH] cfg80211: Remove compile warnings

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

 



On Fri, 2012-05-04 at 11:44 +0300, Andrei Emeltchenko wrote:

> >> -             case NL80211_IFTYPE_UNSPECIFIED:
> >> -             case NUM_NL80211_IFTYPES:
> >> +             default:
> >
> > When did this warning start occurring? I was pretty sure it didn't use
> > to? I think we should explicitly list the cases here though because we
> > want the compiler to warn here when we add something to the interface
> > type list so we catch this place that may have to be modified.
> 
> I think warning occurs when I added new interface type since it is
> also not handled.

Well, but in that case the warning is supposed to happen to tell you
that you need to think about that code for your new interface type.

John, please revert this patch.

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