Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ata Appease gcc3 "-Wno-uninitialized".
details: https://anonhg.NetBSD.org/src/rev/63cc7af71caa
branches: trunk
changeset: 554407:63cc7af71caa
user: fredb <fredb%NetBSD.org@localhost>
date: Mon Oct 27 23:06:15 2003 +0000
description:
Appease gcc3 "-Wno-uninitialized".
diffstat:
sys/dev/ata/wd.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r e24bb64f8a10 -r 63cc7af71caa sys/dev/ata/wd.c
--- a/sys/dev/ata/wd.c Mon Oct 27 23:03:05 2003 +0000
+++ b/sys/dev/ata/wd.c Mon Oct 27 23:06:15 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wd.c,v 1.263 2003/10/08 20:58:00 bouyer Exp $ */
+/* $NetBSD: wd.c,v 1.264 2003/10/27 23:06:15 fredb Exp $ */
/*
* Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.263 2003/10/08 20:58:00 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.264 2003/10/27 23:06:15 fredb Exp $");
#ifndef WDCDEBUG
#define WDCDEBUG
@@ -480,6 +480,8 @@
daddr_t blkno;
int s;
+ blkno = 0; /* XXX to appease gcc3 */
+
WDCDEBUG_PRINT(("wdstrategy (%s)\n", wd->sc_dev.dv_xname),
DEBUG_XFERS);
Home |
Main Index |
Thread Index |
Old Index