Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/iomd Suppress apparently-bogus -Wunitialized wa...
details: https://anonhg.NetBSD.org/src/rev/ff1980e555f6
branches: trunk
changeset: 555041:ff1980e555f6
user: he <he%NetBSD.org@localhost>
date: Fri Nov 07 18:29:30 2003 +0000
description:
Suppress apparently-bogus -Wunitialized warnings, the compiler does
not detect that set / use occur under equal conditions in following
if() statements.
diffstat:
sys/arch/arm/iomd/vidcvideo.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r faac86808606 -r ff1980e555f6 sys/arch/arm/iomd/vidcvideo.c
--- a/sys/arch/arm/iomd/vidcvideo.c Fri Nov 07 17:55:29 2003 +0000
+++ b/sys/arch/arm/iomd/vidcvideo.c Fri Nov 07 18:29:30 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vidcvideo.c,v 1.18 2003/10/24 23:03:50 chris Exp $ */
+/* $NetBSD: vidcvideo.c,v 1.19 2003/11/07 18:29:30 he Exp $ */
/*
* Copyright (c) 2001 Reinoud Zandijk
@@ -36,7 +36,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: vidcvideo.c,v 1.18 2003/10/24 23:03:50 chris Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vidcvideo.c,v 1.19 2003/11/07 18:29:30 he Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -816,6 +816,9 @@
struct fb_devconfig *dc = sc->sc_dc;
u_int v, index, count, icount;
+ /* XXX gcc does not detect identical conditions */
+ index = count = icount = 0;
+
v = p->which;
if (v & WSDISPLAY_CURSOR_DOCMAP) {
index = p->cmap.index;
Home |
Main Index |
Thread Index |
Old Index