Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 Appease gcc -Wuninitialized when cr...
details: https://anonhg.NetBSD.org/src/rev/4ed3fd9f11d8
branches: trunk
changeset: 779987:4ed3fd9f11d8
user: jdc <jdc%NetBSD.org@localhost>
date: Wed Jul 04 07:03:30 2012 +0000
description:
Appease gcc -Wuninitialized when cross-compiling on amd64. Problem noticed
by Hisashi Fujinaka on current-users.
diffstat:
sys/arch/sparc64/sparc64/ipifuncs.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r a9a10a43a670 -r 4ed3fd9f11d8 sys/arch/sparc64/sparc64/ipifuncs.c
--- a/sys/arch/sparc64/sparc64/ipifuncs.c Wed Jul 04 06:09:37 2012 +0000
+++ b/sys/arch/sparc64/sparc64/ipifuncs.c Wed Jul 04 07:03:30 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ipifuncs.c,v 1.45 2012/07/02 15:40:33 jdc Exp $ */
+/* $NetBSD: ipifuncs.c,v 1.46 2012/07/04 07:03:30 jdc Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ipifuncs.c,v 1.45 2012/07/02 15:40:33 jdc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipifuncs.c,v 1.46 2012/07/04 07:03:30 jdc Exp $");
#include "opt_ddb.h"
@@ -361,6 +361,8 @@
int i = 3;
sparc64_cpuset_t cpuset;
+ CPUSET_CLEAR(cpuset); /* XXX: gcc -Wuninitialized */
+
while (i-- > 0) {
CPUSET_CLEAR(cpus_resumed);
CPUSET_ASSIGN(cpuset, cpus_paused);
Home |
Main Index |
Thread Index |
Old Index