Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Fix (invalid) gcc uninitialised warning with i386 g...
details: https://anonhg.NetBSD.org/src/rev/236504b92a31
branches: trunk
changeset: 372208:236504b92a31
user: simonb <simonb%NetBSD.org@localhost>
date: Mon Oct 31 09:14:18 2022 +0000
description:
Fix (invalid) gcc uninitialised warning with i386 gcc using -Os.
diffstat:
sys/kern/subr_prf.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 8760718091b0 -r 236504b92a31 sys/kern/subr_prf.c
--- a/sys/kern/subr_prf.c Mon Oct 31 04:50:12 2022 +0000
+++ b/sys/kern/subr_prf.c Mon Oct 31 09:14:18 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_prf.c,v 1.195 2022/10/26 23:28:42 riastradh Exp $ */
+/* $NetBSD: subr_prf.c,v 1.196 2022/10/31 09:14:18 simonb Exp $ */
/*-
* Copyright (c) 1986, 1988, 1991, 1993
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_prf.c,v 1.195 2022/10/26 23:28:42 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_prf.c,v 1.196 2022/10/31 09:14:18 simonb Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -402,6 +402,8 @@
struct tty *ctp;
int s;
+ ctp = NULL; /* XXX gcc i386 -Os */
+
/*
* Ensure whatever constty points to can't go away while we're
* trying to use it.
Home |
Main Index |
Thread Index |
Old Index