Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys fix lint exposed by GCC 3.0 20010604 (prerelease).
details: https://anonhg.NetBSD.org/src/rev/78759fdc99a3
branches: trunk
changeset: 510695:78759fdc99a3
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Jun 04 20:56:51 2001 +0000
description:
fix lint exposed by GCC 3.0 20010604 (prerelease).
diffstat:
sys/arch/sparc64/dev/ebus.c | 4 ++--
sys/arch/sparc64/sparc64/db_interface.c | 14 +++++++++-----
sys/compat/sunos32/sunos32_ioctl.c | 5 +----
sys/dev/ic/lsi64854.c | 3 ++-
4 files changed, 14 insertions(+), 12 deletions(-)
diffs (90 lines):
diff -r 7b36efb714e6 -r 78759fdc99a3 sys/arch/sparc64/dev/ebus.c
--- a/sys/arch/sparc64/dev/ebus.c Mon Jun 04 20:06:41 2001 +0000
+++ b/sys/arch/sparc64/dev/ebus.c Mon Jun 04 20:56:51 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ebus.c,v 1.21 2001/05/18 22:01:57 mrg Exp $ */
+/* $NetBSD: ebus.c,v 1.22 2001/06/04 20:56:52 mrg Exp $ */
/*
* Copyright (c) 1999, 2000 Matthew R. Green
@@ -354,7 +354,7 @@
}
}
}
-next_intr:
+next_intr:;
}
}
diff -r 7b36efb714e6 -r 78759fdc99a3 sys/arch/sparc64/sparc64/db_interface.c
--- a/sys/arch/sparc64/sparc64/db_interface.c Mon Jun 04 20:06:41 2001 +0000
+++ b/sys/arch/sparc64/sparc64/db_interface.c Mon Jun 04 20:56:51 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_interface.c,v 1.58 2001/05/26 16:32:45 chs Exp $ */
+/* $NetBSD: db_interface.c,v 1.59 2001/06/04 20:56:52 mrg Exp $ */
/*
* Mach Operating System
@@ -407,11 +407,15 @@
p = buf;
for (i=0; i<64;) {
#ifdef __arch64__
- db_printf("%2d:%16.16lx %16.16lx ", i++, *p++, *p++);
- db_printf("%2d:%16.16lx %16.16lx\n", i++, *p++, *p++);
+ db_printf("%2d:%16.16lx %16.16lx ", i++, p[0], p[1]);
+ p += 2;
+ db_printf("%2d:%16.16lx %16.16lx\n", i++, p[0], p[1]);
+ p += 2;
#else
- db_printf("%2d:%16.16qx %16.16qx ", i++, *p++, *p++);
- db_printf("%2d:%16.16qx %16.16qx\n", i++, *p++, *p++);
+ db_printf("%2d:%16.16qx %16.16qx ", i++, p[0], p[1]);
+ p += 2;
+ db_printf("%2d:%16.16qx %16.16qx\n", i++, p[0], p[1]);
+ p += 2;
#endif
}
} else {
diff -r 7b36efb714e6 -r 78759fdc99a3 sys/compat/sunos32/sunos32_ioctl.c
--- a/sys/compat/sunos32/sunos32_ioctl.c Mon Jun 04 20:06:41 2001 +0000
+++ b/sys/compat/sunos32/sunos32_ioctl.c Mon Jun 04 20:56:51 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos32_ioctl.c,v 1.4 2001/05/30 11:37:31 mrg Exp $ */
+/* $NetBSD: sunos32_ioctl.c,v 1.5 2001/06/04 20:56:52 mrg Exp $ */
/* from: NetBSD: sunos_ioctl.c,v 1.35 2001/02/03 22:20:02 mrg Exp */
/*
@@ -1082,8 +1082,6 @@
case SUN_F_CNVT:
case SUN_F_RSETLKW:
return (EOPNOTSUPP);
-
- default:
}
ret = netbsd32_fcntl(p, uap, retval);
@@ -1098,7 +1096,6 @@
}
}
break;
- default:
}
return (ret);
diff -r 7b36efb714e6 -r 78759fdc99a3 sys/dev/ic/lsi64854.c
--- a/sys/dev/ic/lsi64854.c Mon Jun 04 20:06:41 2001 +0000
+++ b/sys/dev/ic/lsi64854.c Mon Jun 04 20:56:51 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lsi64854.c,v 1.17 2001/04/08 11:45:45 tsutsui Exp $ */
+/* $NetBSD: lsi64854.c,v 1.18 2001/06/04 20:56:51 mrg Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -270,6 +270,7 @@
csr |= D_ESC_BURST;
break;
default:
+ break;
}
L64854_SCSR(sc, csr);
Home |
Main Index |
Thread Index |
Old Index