From owner-freebsd-current Wed Nov 13 13:35:24 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 1279D37B404 for ; Wed, 13 Nov 2002 13:35:22 -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 155C843E42 for ; Wed, 13 Nov 2002 13:35:20 -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 gADLZMN3005047 for ; Wed, 13 Nov 2002 22:35:23 +0100 (CET) (envelope-from eirik@odin.eirikn.net) Received: (from eirik@localhost) by odin.eirikn.net (8.12.6/8.12.6/Submit) id gADLZMC8005034 for current@freebsd.org; Wed, 13 Nov 2002 22:35:22 +0100 (CET) Date: Wed, 13 Nov 2002 22:35:22 +0100 From: Eirik Nygaard To: current@freebsd.org Subject: libdisk/rules.c broken Message-ID: <20021113213522.GC9291@eirikn.net> Reply-To: eirikn@bluezone.no Mail-Followup-To: current@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0eh6TmSyL6TZE2Uz" Content-Disposition: inline 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 --0eh6TmSyL6TZE2Uz Content-Type: multipart/mixed; boundary="fdj2RfSjLxBAspz7" Content-Disposition: inline --fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 A patch is attached. --=20 Eirik Nygaard PGP Key: 83C55EDE --fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="libdisk+rules.c.diff" Content-Transfer-Encoding: quoted-printable 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 --fdj2RfSjLxBAspz7-- --0eh6TmSyL6TZE2Uz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE90sWa1JB0Z4PFXt4RArpSAJ9mhqp2YUY8/lbDGPaX/kUfW0AaRQCggO4j kEirRSw5xCQnGJkL+R1cSSQ= =kvDu -----END PGP SIGNATURE----- --0eh6TmSyL6TZE2Uz-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message