r248093: Kernel build failure: /usr/src/sys/net80211/ieee80211_output.c:600:23: error: unused variable 'ic' [-Werror,-Wunused-variable]

David Wolfskill david at catwhisker.org
Sat Mar 9 15:03:05 UTC 2013


On Sat, Mar 09, 2013 at 11:59:21AM +0100, Hartmann, O. wrote:
> On CURRENT, r248093, build of kernel fails due to the below shown error.
> 
> [...]
> 
> cc -c -O3 -O3 -Wno-error=unused-variable -fno-strict-aliasing
> ...
> -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror
>  /usr/src/sys/net80211/ieee80211_output.c
> /usr/src/sys/net80211/ieee80211_output.c:600:23: error: unused variable
> 'ic' [-Werror,-Wunused-variable]
>         struct ieee80211com *ic = ni->ni_ic;
>                              ^
> 1 error generated.
> *** [ieee80211_output.o] Error code 1
> 
> Stop in /usr/obj/usr/src/sys/GATE.
> *** [buildkernel] Error code 1
> 
> Stop in /usr/src.
> *** [buildkernel] Error code 1
> 
> Stop in /usr/src.
> ....

I use clang, and did not encounter that:

FreeBSD g1-235.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #832  r248033M/248035: Fri Mar  8 07:36:04 PST 2013     root at localhost:/usr/obj/usr/src/sys/CANARY  i386

Peace,
david
-- 
David H. Wolfskill				david at catwhisker.org
Taliban: Evil men with guns afraid of truth from a 14-year old girl.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20130309/c8e7c89b/attachment.sig>


More information about the freebsd-current mailing list