Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/atari/dev gcc is not smart enough to track the equi...
details: https://anonhg.NetBSD.org/src/rev/2549a9c4aa43
branches: trunk
changeset: 368159:2549a9c4aa43
user: martin <martin%NetBSD.org@localhost>
date: Sun Jun 26 09:18:06 2022 +0000
description:
gcc is not smart enough to track the equivalence of conditions used
here and warns about an unused value - initialize "code" always.
diffstat:
sys/arch/atari/dev/kbd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 01f12d67f5f8 -r 2549a9c4aa43 sys/arch/atari/dev/kbd.c
--- a/sys/arch/atari/dev/kbd.c Sun Jun 26 09:14:14 2022 +0000
+++ b/sys/arch/atari/dev/kbd.c Sun Jun 26 09:18:06 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kbd.c,v 1.55 2022/06/26 04:45:30 tsutsui Exp $ */
+/* $NetBSD: kbd.c,v 1.56 2022/06/26 09:18:06 martin Exp $ */
/*
* Copyright (c) 1995 Leo Weppelman
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.55 2022/06/26 04:45:30 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.56 2022/06/26 09:18:06 martin Exp $");
#include "mouse.h"
#include "ite.h"
@@ -424,7 +424,7 @@
/* sr: sr at time of interrupt */
{
struct kbd_softc *sc = &kbd_softc;
- uint8_t stat, code;
+ uint8_t stat, code = 0 /* XXX gcc */;
uint32_t rndstat;
bool got_char = false;
Home |
Main Index |
Thread Index |
Old Index