Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdio Initialize expsize to appease -Wuninitialized...
details: https://anonhg.NetBSD.org/src/rev/40c232820efe
branches: trunk
changeset: 582059:40c232820efe
user: he <he%NetBSD.org@localhost>
date: Wed Jun 15 09:31:27 2005 +0000
description:
Initialize expsize to appease -Wuninitialized for sh3 and m68000.
Marked with XXXGCC -Wuninitialized [sh3,m68000].
diffstat:
lib/libc/stdio/vfwprintf.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r ab166a3a73ea -r 40c232820efe lib/libc/stdio/vfwprintf.c
--- a/lib/libc/stdio/vfwprintf.c Wed Jun 15 08:03:07 2005 +0000
+++ b/lib/libc/stdio/vfwprintf.c Wed Jun 15 09:31:27 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfwprintf.c,v 1.2 2005/06/12 05:45:38 lukem Exp $ */
+/* $NetBSD: vfwprintf.c,v 1.3 2005/06/15 09:31:27 he Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -42,7 +42,7 @@
static char sccsid[] = "@(#)vfprintf.c 8.1 (Berkeley) 6/4/93";
__FBSDID("$FreeBSD: src/lib/libc/stdio/vfwprintf.c,v 1.24 2005/04/16 22:36:51 das Exp $");
#else
-__RCSID("$NetBSD: vfwprintf.c,v 1.2 2005/06/12 05:45:38 lukem Exp $");
+__RCSID("$NetBSD: vfwprintf.c,v 1.3 2005/06/15 09:31:27 he Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -655,6 +655,7 @@
grouping = NULL;
#ifndef NO_FLOATING_POINT
decimal_point = localeconv()->decimal_point;
+ expsize = 0; /* XXXGCC -Wuninitialized [sh3,m68000] */
#endif
convbuf = NULL;
/* sorry, fwprintf(read_only_file, L"") returns WEOF, not 0 */
Home |
Main Index |
Thread Index |
Old Index