From: downsj Date: Sun, 20 Apr 1997 07:01:10 +0000 (+0000) Subject: Make -Wall work. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=22f36c93b093cae8c05178252f8a5789b1fcca49;p=openbsd Make -Wall work. --- diff --git a/sys/arch/hp300/conf/Makefile.hp300 b/sys/arch/hp300/conf/Makefile.hp300 index 751541bbf91..a7d6712785a 100644 --- a/sys/arch/hp300/conf/Makefile.hp300 +++ b/sys/arch/hp300/conf/Makefile.hp300 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.hp300,v 1.15 1997/04/16 11:55:54 downsj Exp $ +# $OpenBSD: Makefile.hp300,v 1.16 1997/04/20 07:01:10 downsj Exp $ # $NetBSD: Makefile.hp300,v 1.54 1997/04/01 23:16:41 scottr Exp $ # Makefile for OpenBSD @@ -35,7 +35,8 @@ HP300= ../.. INCLUDES= -I. -I$S/arch -I$S -nostdinc CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \ -Dmc68020 -Dhp300 -CWARNFLAGS= -Werror -Wstrict-prototypes -Wmissing-prototypes +CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wno-uninitialized \ + -Wno-format CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} -msoft-float AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE LINKFLAGS= -n -Ttext 0 -e start diff --git a/sys/arch/hp300/dev/ac.c b/sys/arch/hp300/dev/ac.c index 507a98fb66b..657ddc7a1c4 100644 --- a/sys/arch/hp300/dev/ac.c +++ b/sys/arch/hp300/dev/ac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ac.c,v 1.6 1997/04/16 11:55:56 downsj Exp $ +/* $OpenBSD: ac.c,v 1.7 1997/04/20 07:01:11 downsj Exp $ */ /* $NetBSD: ac.c,v 1.9 1997/04/02 22:37:21 scottr Exp $ */ /* diff --git a/sys/arch/hp300/dev/st.c b/sys/arch/hp300/dev/st.c index 15862c5d282..87240e73621 100644 --- a/sys/arch/hp300/dev/st.c +++ b/sys/arch/hp300/dev/st.c @@ -1,4 +1,4 @@ -/* $OpenBSD: st.c,v 1.8 1997/04/16 11:56:17 downsj Exp $ */ +/* $OpenBSD: st.c,v 1.9 1997/04/20 07:01:12 downsj Exp $ */ /* $NetBSD: st.c,v 1.22 1997/04/02 22:37:38 scottr Exp $ */ /* @@ -92,8 +92,8 @@ #include #include -static struct scsi_fmt_cdb st_read_cmd = { 6, CMD_READ }; -static struct scsi_fmt_cdb st_write_cmd = { 6, CMD_WRITE }; +static struct scsi_fmt_cdb st_read_cmd = { 6, { CMD_READ } }; +static struct scsi_fmt_cdb st_write_cmd = { 6, { CMD_WRITE } }; #define UNIT(x) (minor(x) & 3) #define stpunit(x) ((x) & 7) diff --git a/sys/arch/hp300/hp300/machdep.c b/sys/arch/hp300/hp300/machdep.c index 8003af8c0d5..159a5831740 100644 --- a/sys/arch/hp300/hp300/machdep.c +++ b/sys/arch/hp300/hp300/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.25 1997/04/17 12:02:34 downsj Exp $ */ +/* $OpenBSD: machdep.c,v 1.26 1997/04/20 07:01:13 downsj Exp $ */ /* $NetBSD: machdep.c,v 1.89 1997/04/09 20:05:20 thorpej Exp $ */ /* @@ -227,7 +227,7 @@ cpu_startup() extern char *etext; unsigned i; caddr_t v; - int base, residual, sz; + int base, residual; vm_offset_t minaddr, maxaddr; vm_size_t size; #ifdef DEBUG