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     [EMAIL PROTECTED]:/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 <[EMAIL PROTECTED]>
> 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 <[EMAIL PROTECTED]>
PGP Key: 83C55EDE

Attachment: msg46662/pgp00000.pgp
Description: PGP signature

Reply via email to