Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/m4 Initialize a local variable to appease -Wuninitia...



details:   https://anonhg.NetBSD.org/src/rev/3a4e9b828c4e
branches:  trunk
changeset: 581834:3a4e9b828c4e
user:      he <he%NetBSD.org@localhost>
date:      Tue Jun 07 09:25:00 2005 +0000

description:
Initialize a local variable to appease -Wuninitialized.
Marked with XXXGCC for sun2 (found while compiling for it).

Reviewed by lukem.

diffstat:

 usr.bin/m4/main.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 9b1973d4b5cb -r 3a4e9b828c4e usr.bin/m4/main.c
--- a/usr.bin/m4/main.c Tue Jun 07 09:20:19 2005 +0000
+++ b/usr.bin/m4/main.c Tue Jun 07 09:25:00 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.35 2004/06/20 22:20:16 jmc Exp $    */
+/*     $NetBSD: main.c,v 1.36 2005/06/07 09:25:00 he Exp $     */
 /*     $OpenBSD: main.c,v 1.51 2001/10/06 10:52:25 espie Exp $ */
 
 /*-
@@ -47,7 +47,7 @@
 #if 0
 static char sccsid[] = "@(#)main.c     8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: main.c,v 1.35 2004/06/20 22:20:16 jmc Exp $");
+__RCSID("$NetBSD: main.c,v 1.36 2005/06/07 09:25:00 he Exp $");
 #endif
 #endif /* not lint */
 
@@ -323,6 +323,8 @@
        ndptr p;
        int  nlpar;
 
+       l = 0;          /* XXXGCC -Wuninitialized [sun2] */
+
        cycle {
                t = gpbc();
                if (t == '_' || isalpha(t)) {



Home | Main Index | Thread Index | Old Index