Subject: Compiling kernel with egcs
To: None <port-pc532@NetBSD.ORG>
From: Ian Dall <Ian.Dall@dsto.defence.gov.au>
List: port-pc532
Date: 04/26/1998 20:34:44
Egcs seems to find a few warnings which gcc 2.7.x.x didn't. And of course,
with -Werror in effect, the warnings are fatal. Here are two minor
changes I made to get the kernel to compile using egcs.

Ian


diff -ru ../../../../../src/sys/arch/pc532/pc532/disksubr.c ./disksubr.c
--- ../../../../../src/sys/arch/pc532/pc532/disksubr.c  Wed Aug 27 23:39:11 1997
+++ ./disksubr.c        Sun Apr 26 11:06:46 1998
@@ -117,7 +117,7 @@
        u_long openmask;
        struct cpu_disklabel *osdep;
 {
-       register i;
+       register int i;
        register struct partition *opp, *npp;
 
        if (nlp->d_magic != DISKMAGIC || nlp->d_magic2 != DISKMAGIC ||
diff -ru ../../../../../src/sys/arch/pc532/pc532/machdep.c ./machdep.c
--- ../../../../../src/sys/arch/pc532/pc532/machdep.c   Thu Mar 19 22:51:06 1998
+++ ./machdep.c Sun Apr 26 16:30:59 1998
@@ -677,7 +677,6 @@
        char *bootstr;
 {
        extern int cold;
-       extern const char *panicstr;
        int s;
 
        /* If system is cold, just halt. */