Date: Tue, 17 Apr 2012 22:32:58 +0200 From: "O. Hartmann" <ohartman@zedat.fu-berlin.de> To: Dimitry Andric <dim@FreeBSD.org> Cc: Current FreeBSD <freebsd-current@freebsd.org> Subject: Re: usr/src/sys/modules/nxge/../../dev/nxge/if_nxge.c:1289:11: error: case value not in enumerated type 'xge_hal_event_e' (aka 'enum xge_hal_event_e') [-Werror,-Wswitch], case XGE_LL_EVENT_DEVICE_RESETTING: Message-ID: <4F8DD37A.3080703@zedat.fu-berlin.de> In-Reply-To: <4F8DCAC1.5040507@FreeBSD.org> References: <4F8DC447.3080105@zedat.fu-berlin.de> <4F8DCAC1.5040507@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigBF9C75F9DA6EAF10D0DFBB7C Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 04/17/12 21:55, schrieb Dimitry Andric: > On 2012-04-17 21:28, O. Hartmann wrote: >> Compiling the most recent kernel sources results in the following erro= r. >> OS is: >> >> FreeBSD 10.0-CURRENT #3 r234326: Mon Apr 16 00:47:35 CEST 2012 >> >> =3D=3D=3D> nxge (all) >> clang -O2 -fno-strict-aliasing -pipe -pipe -O3 -fno-strict-aliasing >> -march=3Dnative -DXGE_DEBUG_MODULE_MASK=3DXGE_COMPONENT_LL >> -DXGE_DEBUG_ERR_MASK=3DXGE_COMPONENT_LL -Werror -D_KERNEL -DKLD_MODULE= >> -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include >> /usr/obj/usr/src/sys/THOR/opt_global.h -I. -I@ -I@/contrib/altq >> -fno-common -fno-omit-frame-pointer -I/usr/obj/usr/src/sys/THOR >> -mno-aes -mno-avx -mcmodel=3Dkernel -mno-red-zone -mno-mmx -mno-sse >> -msoft-float -fno-asynchronous-unwind-tables -ffreestanding >> -fstack-protector -std=3Diso9899:1999 -Qunused-arguments -fstack-prote= ctor >> -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes >> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef >> -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs >> -fdiagnostics-show-option -Wno-error-tautological-compare >> -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-self-assig= n >> -c /usr/src/sys/modules/nxge/../../dev/nxge/if_nxge.c >> /usr/src/sys/modules/nxge/../../dev/nxge/if_nxge.c:1276:11: error: cas= e >> value not in enumerated type 'xge_hal_event_e' (aka 'enum >> xge_hal_event_e') [-Werror,-Wswitch] >> case XGE_LL_EVENT_TRY_XMIT_AGAIN: >> ^ >> /usr/src/sys/modules/nxge/../../dev/nxge/if_nxge.c:1289:11: error: cas= e >> value not in enumerated type 'xge_hal_event_e' (aka 'enum >> xge_hal_event_e') [-Werror,-Wswitch] >> case XGE_LL_EVENT_DEVICE_RESETTING: >> ^ >=20 > Yes, this is expected. I imported a new clang snapshot, which has more= > elaborate checks on switches in combinations with enums. Yes, I saw LLVM/CLANG 3.1 slipping in ;-) Thanks for that, highly appreciated. >=20 > There are several other problems like this, the fixes are in the > pipeline. But for the fix for this particular error in nxge, I didn't > yet receive enough feedback. >=20 > For now, please set WERROR=3D in your src.conf, or apply the attached > patch to your source tree. Well, the box in my lab compiled without flaws, so I was really confused that the office's box won't. But now where you say WERROR - I commenetd that out so I guess the simplest and non-invasive way is to enable WERROR=3D again. I do so now ... Thank you very much, Regards, Oliver --------------enigBF9C75F9DA6EAF10D0DFBB7C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQEcBAEBAgAGBQJPjdOAAAoJEOgBcD7A/5N8GRAIAK+cx7EI0ZfNX71UU9s4Wpex NeGvzAd+IKhZ07mksmvzbKZXvAj//cZWD5rnG/jarLR8OPOzWwKODCPCR0yVbYmM HCboFujdSwN8CQWkvXUNsjMznjBdm3877MhpSV6aTIWahorISfz5Q+4rDUcSAjlJ JdeKxJAWczlQBKTNGBOR5BzzXNOkhdJq1gUCetLPUZP7q/U0eHlOOswu6C/1fRUF /i3s5UNFIEJMU8C8R4B74V/xVpr7T5lxSVTwW//25/u1L88mUgsFSr4LSyxND2N1 BZrbfJ/3IYkBcWlRPcwBMyDCQ6pO2S1lMYCo1XdrB+Q77bVPTtL5zZCozT62s3g= =G6kC -----END PGP SIGNATURE----- --------------enigBF9C75F9DA6EAF10D0DFBB7C--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F8DD37A.3080703>