Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Nov 2002 22:35:22 +0100
From:      Eirik Nygaard <eirikn@bluezone.no>
To:        current@freebsd.org
Subject:   libdisk/rules.c broken
Message-ID:  <20021113213522.GC9291@eirikn.net>

next in thread | raw e-mail | index | archive | help

--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 <eirikn@bluezone.no>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021113213522.GC9291>