From owner-freebsd-current Wed Nov 13 23:11:12 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 659F337B404 for ; Wed, 13 Nov 2002 23:11:08 -0800 (PST) Received: from odin.eirikn.net (a217-118-47-173.bluecom.no [217.118.47.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67B3A43E6E for ; Wed, 13 Nov 2002 23:11:07 -0800 (PST) (envelope-from eirik@odin.eirikn.net) Received: from odin.eirikn.net (localhost [127.0.0.1]) by odin.eirikn.net (8.12.6/8.12.6) with ESMTP id gAE7BCN3076827 for ; Thu, 14 Nov 2002 08:11:12 +0100 (CET) (envelope-from eirik@odin.eirikn.net) Received: (from eirik@localhost) by odin.eirikn.net (8.12.6/8.12.6/Submit) id gAE7BB1T076826 for current@FreeBSD.ORG; Thu, 14 Nov 2002 08:11:11 +0100 (CET) Date: Thu, 14 Nov 2002 08:11:11 +0100 From: Eirik Nygaard To: current@FreeBSD.ORG Subject: Re: libdisk/rules.c broken Message-ID: <20021114071111.GE9291@eirikn.net> Reply-To: eirikn@bluezone.no Mail-Followup-To: current@FreeBSD.ORG References: <20021113213522.GC9291@eirikn.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MAH+hnPXVZWQ5cD/" Content-Disposition: inline In-Reply-To: <20021113213522.GC9291@eirikn.net> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --MAH+hnPXVZWQ5cD/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Sorry, forgot to give som version info, I am running -CURRENT as of 13 Nov. Uname: FreeBSD odin.eirikn.net 5.0-CURRENT FreeBSD 5.0-CURRENT #4: Sun Nov = 10 13:08:46 CET 2002 eirik@odin.eirikn.net:/usr/obj/usr/src/sys/ITvisio= n i386 On Wed, Nov 13, 2002 at 10:35:22PM +0100, Eirik Nygaard wrote: > lib/libdisk/rules.c is broken in Check_Chunk(). > cc -mcpu=3Dpentiumpro -Werror -Wall -Wno-format-y2k -Wno-uninitialized = -c rules.c -o rules.o > cc1: warnings being treated as errors > rules.c: In function `Check_Chunk': > rules.c:254: warning: enumeration value `p_any' not handled in switch > rules.c:254: warning: enumeration value `p_alpha' not handled in switch > rules.c:254: warning: enumeration value `p_sparc64' not handled in switch > rules.c:254: warning: enumeration value `p_ia64' not handled in switch > rules.c:254: warning: enumeration value `p_ppc' not handled in switch > *** Error code 1 >=20 > A patch is attached. >=20 > --=20 >=20 > Eirik Nygaard > PGP Key: 83C55EDE >=20 > Index: rules.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /home/ncvs/src/lib/libdisk/rules.c,v > retrieving revision 1.27 > diff -u -r1.27 rules.c > --- rules.c 31 Oct 2002 05:51:25 -0000 1.27 > +++ rules.c 13 Nov 2002 21:25:16 -0000 > @@ -251,6 +251,12 @@ > if (c->next) > Check_Chunk(d, c->next, msg); > break; > + case p_alpha: > + case p_sparc64: > + case p_ia64: > + case p_ppc: > + case p_any: > + break; > } > } > =20 --=20 Eirik Nygaard PGP Key: 83C55EDE --MAH+hnPXVZWQ5cD/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE900yP1JB0Z4PFXt4RAu6hAJ45H7pia7GCHkvpHveEsI5VjvffqwCfdJxL Tz5xNdsknbz4/MTL5sZQOz8= =qRZ/ -----END PGP SIGNATURE----- --MAH+hnPXVZWQ5cD/-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message