diff options
| author | he <he@NetBSD.org> | 2005-06-15 09:31:27 +0000 |
|---|---|---|
| committer | he <he@NetBSD.org> | 2005-06-15 09:31:27 +0000 |
| commit | 12d0c406c773f5be16d2bdba1462a23c4d8a5e35 (patch) | |
| tree | 40f7ee2870b43974147765ad00811ff95fc40ce5 /lib/libc/stdio/vfwprintf.c | |
| parent | 3bd71bdfb403e17a8e363c1896fde8773e049445 (diff) | |
Initialize expsize to appease -Wuninitialized for sh3 and m68000.
Marked with XXXGCC -Wuninitialized [sh3,m68000].
Diffstat (limited to 'lib/libc/stdio/vfwprintf.c')
| -rw-r--r-- | lib/libc/stdio/vfwprintf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/stdio/vfwprintf.c b/lib/libc/stdio/vfwprintf.c index 0db2fb4016b..3c8af4d2201 100644 --- a/lib/libc/stdio/vfwprintf.c +++ b/lib/libc/stdio/vfwprintf.c @@ -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 @@ __vfwprintf_unlocked(FILE *fp, const wchar_t *fmt0, va_list ap) 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 */ |
