Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Nov 2002 08:11:11 +0100
From:      Eirik Nygaard <eirikn@bluezone.no>
To:        current@FreeBSD.ORG
Subject:   Re: libdisk/rules.c broken
Message-ID:  <20021114071111.GE9291@eirikn.net>
In-Reply-To: <20021113213522.GC9291@eirikn.net>
References:  <20021113213522.GC9291@eirikn.net>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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/ITvision  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=pentiumpro -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.
> 
> -- 
> 
> Eirik Nygaard <eirikn@bluezone.no>
> PGP Key: 83C55EDE
> 

> Index: rules.c
> ===================================================================
> 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;
>  	}
>  }
>  




-- 

Eirik Nygaard <eirikn@bluezone.no>
PGP Key: 83C55EDE


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE900yP1JB0Z4PFXt4RAu6hAJ45H7pia7GCHkvpHveEsI5VjvffqwCfdJxL
Tz5xNdsknbz4/MTL5sZQOz8=
=qRZ/
-----END PGP SIGNATURE-----
help

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