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;
        }
 }
 

Attachment: msg46645/pgp00000.pgp
Description: PGP signature

Reply via email to