diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1997-04-20 07:01:14 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1997-04-20 07:01:14 +0000 |
commit | 32941b8d7a4c3bb13c7a4843dea726e37f65b723 (patch) | |
tree | ae4cd1568457156e00a0fab75bb710ba88d2a738 /sys | |
parent | 65029cff7d3d49718f889f8f235f341ec98b8a1c (diff) |
Make -Wall work.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/hp300/conf/Makefile.hp300 | 5 | ||||
-rw-r--r-- | sys/arch/hp300/dev/ac.c | 2 | ||||
-rw-r--r-- | sys/arch/hp300/dev/st.c | 6 | ||||
-rw-r--r-- | sys/arch/hp300/hp300/machdep.c | 4 |
4 files changed, 9 insertions, 8 deletions
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 <hp300/dev/scsivar.h> #include <hp300/dev/stvar.h> -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 |