Module Name: src
Committed By: martin
Date: Sun Jun 26 09:18:06 UTC 2022
Modified Files:
src/sys/arch/atari/dev: kbd.c
Log Message:
gcc is not smart enough to track the equivalence of conditions used
here and warns about an unused value - initialize "code" always.
To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/sys/arch/atari/dev/kbd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/atari/dev/kbd.c
diff -u src/sys/arch/atari/dev/kbd.c:1.55 src/sys/arch/atari/dev/kbd.c:1.56
--- src/sys/arch/atari/dev/kbd.c:1.55 Sun Jun 26 04:45:30 2022
+++ src/sys/arch/atari/dev/kbd.c Sun Jun 26 09:18:06 2022
@@ -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 @@ kbdintr(int sr)
/* 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;