Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/nvi/dist Quell warnings from gcc 4.1



details:   https://anonhg.NetBSD.org/src/rev/9bc12c598b19
branches:  trunk
changeset: 791542:9bc12c598b19
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Nov 22 19:59:36 2013 +0000

description:
Quell warnings from gcc 4.1

diffstat:

 external/bsd/nvi/dist/ip/ip_read.c |  4 ++--
 external/bsd/nvi/dist/ipc/ip_run.c |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 1b8ccd0eacf4 -r 9bc12c598b19 external/bsd/nvi/dist/ip/ip_read.c
--- a/external/bsd/nvi/dist/ip/ip_read.c        Fri Nov 22 18:58:01 2013 +0000
+++ b/external/bsd/nvi/dist/ip/ip_read.c        Fri Nov 22 19:59:36 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_read.c,v 1.2 2013/11/22 15:52:05 christos Exp $     */
+/*     $NetBSD: ip_read.c,v 1.3 2013/11/22 19:59:36 martin Exp $       */
 /*-
  * Copyright (c) 1996
  *     Keith Bostic.  All rights reserved.
@@ -140,7 +140,7 @@
        IP_PRIVATE *ipp;
        struct timeval t, *tp;
        int termread;
-       int nr;
+       int nr = 0;
 
        if (LF_ISSET(EC_INTERRUPT)) {           /* XXX */
                evp->e_event = E_TIMEOUT;
diff -r 1b8ccd0eacf4 -r 9bc12c598b19 external/bsd/nvi/dist/ipc/ip_run.c
--- a/external/bsd/nvi/dist/ipc/ip_run.c        Fri Nov 22 18:58:01 2013 +0000
+++ b/external/bsd/nvi/dist/ipc/ip_run.c        Fri Nov 22 19:59:36 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_run.c,v 1.2 2013/11/22 15:52:05 christos Exp $      */
+/*     $NetBSD: ip_run.c,v 1.3 2013/11/22 19:59:36 martin Exp $        */
 /*-
  * Copyright (c) 1996
  *     Rob Zimmermann.  All rights reserved.
@@ -212,7 +212,7 @@
 static void
 arg_format(char *execp, int *argcp, char **argvp[], int i_fd, int o_fd)
 {
-       char *iarg, **largv, *p, **p_av, **t_av;
+       char *iarg, **largv = NULL /* XXX gcc */, *p, **p_av, **t_av;
 
        /* Get space for the argument array and the -I argument. */
        if ((iarg = malloc(64)) == NULL ||



Home | Main Index | Thread Index | Old Index