Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/mkdep Initialize a couple of local variables to appe...
details: https://anonhg.NetBSD.org/src/rev/b92e938134a4
branches: trunk
changeset: 581835:b92e938134a4
user: he <he%NetBSD.org@localhost>
date: Tue Jun 07 09:33:37 2005 +0000
description:
Initialize a couple of local variables to appease -Wuninitialized.
Marked with XXXGCC for sun2 (found while compiling for it).
Reviewed by lukem.
diffstat:
usr.bin/mkdep/mkdep.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 3a4e9b828c4e -r b92e938134a4 usr.bin/mkdep/mkdep.c
--- a/usr.bin/mkdep/mkdep.c Tue Jun 07 09:25:00 2005 +0000
+++ b/usr.bin/mkdep/mkdep.c Tue Jun 07 09:33:37 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mkdep.c,v 1.23 2004/07/13 12:00:30 wiz Exp $ */
+/* $NetBSD: mkdep.c,v 1.24 2005/06/07 09:33:37 he Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -44,7 +44,7 @@
#if !defined(lint)
__COPYRIGHT("@(#) Copyright (c) 1999 The NetBSD Foundation, Inc.\n\
All rights reserved.\n");
-__RCSID("$NetBSD: mkdep.c,v 1.23 2004/07/13 12:00:30 wiz Exp $");
+__RCSID("$NetBSD: mkdep.c,v 1.24 2005/06/07 09:33:37 he Exp $");
#endif /* not lint */
#include <sys/mman.h>
@@ -174,6 +174,9 @@
const char *suffixes = NULL, *s;
suff_list_t *suff_list = NULL, *sl;
+ suf = NULL; /* XXXGCC -Wuninitialized [sun2] */
+ sl = NULL; /* XXXGCC -Wuninitialized [sun2] */
+
setlocale(LC_ALL, "");
setprogname(argv[0]);
Home |
Main Index |
Thread Index |
Old Index