Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe Gcc -Os on landisk is not smart enough to ...
details: https://anonhg.NetBSD.org/src/rev/b16b80c63717
branches: trunk
changeset: 966463:b16b80c63717
user: martin <martin%NetBSD.org@localhost>
date: Wed Oct 30 16:00:13 2019 +0000
description:
Gcc -Os on landisk is not smart enough to follow the conditional
initialization and warns, unconditionaly initialize dksc at declaration
with a XXX gcc comment.
diffstat:
sys/dev/raidframe/rf_netbsdkintf.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8f2cda30f4c2 -r b16b80c63717 sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c Wed Oct 30 14:34:30 2019 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c Wed Oct 30 16:00:13 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.377 2019/10/30 07:59:44 maxv Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.378 2019/10/30 16:00:13 martin Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2008-2011 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
***********************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.377 2019/10/30 07:59:44 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.378 2019/10/30 16:00:13 martin Exp $");
#ifdef _KERNEL_OPT
#include "opt_raid_autoconfig.h"
@@ -487,7 +487,7 @@
RF_ConfigSet_t *next_cset;
int num_root;
struct raid_softc *sc, *rsc;
- struct dk_softc *dksc;
+ struct dk_softc *dksc = NULL; /* XXX gcc -Os: may be used uninit. */
sc = rsc = NULL;
num_root = 0;
Home |
Main Index |
Thread Index |
Old Index