Search Linux Wireless

Re: [PATCH] ocb: use correct "MHz" instead of "MHZ"

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

 



> Hm. I think -Wunused-parameter I'd prefer not to fix, since that
> usually ends up with something like
>
> int my_callback_function(void *ignored)
> {
>         ignored = ignored;
>
>         ...
> }
>
> or something like that?

Correct. I have done a macro to utilize the gcc "__attribute__
((unused))" and I fully understand that it is not an elegant solution.
I don't want to convince you about merging it since I wouldn't do it
myself. :)

> I don't see anything with -Wmissing-field-initializers.

Hmm. I'll try to find out why I get these warnings. Mostly, it is
about changing "{}" -> "{0}" on stack allocated objects.
This is what I get when compiling at 0ee571d57b8b631658d1a35ad9a906610d6145d3

$ mm -B -j8 2>&1 | grep -i missing-field
external/iw/scan.c:1863:3: warning: missing initializer for field
'type' of 'struct nla_policy' [-Wmissing-field-initializers]
external/iw/scan.c:1866:3: warning: missing initializer for field
'type' of 'struct nla_policy' [-Wmissing-field-initializers]
external/iw/scan.c:1871:3: warning: missing initializer for field
'type' of 'struct nla_policy' [-Wmissing-field-initializers]
external/iw/connect.c:80:9: warning: missing initializer for field
'ts' of 'struct print_event_args' [-Wmissing-field-initializers]
external/iw/link.c:32:3: warning: missing initializer for field 'type'
of 'struct nla_policy' [-Wmissing-field-initializers]
external/iw/link.c:35:3: warning: missing initializer for field 'type'
of 'struct nla_policy' [-Wmissing-field-initializers]
external/iw/bitrate.c:95:9: warning: missing initializer for field
'mcs' of 'struct nl80211_txrate_vht' [-Wmissing-field-initializers]
external/iw/bitrate.c:96:9: warning: missing initializer for field
'mcs' of 'struct nl80211_txrate_vht' [-Wmissing-field-initializers]
external/iw/wowlan.c:110:11: warning: missing initializer for field
'start' of 'struct nl80211_wowlan_tcp_data_seq'
[-Wmissing-field-initializers]
--
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