Source-Changes-HG archive

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

[src/netbsd-8]: src/sys/kern Backout the pullup of r1.476:



details:   https://anonhg.NetBSD.org/src/rev/f727bdaf96cb
branches:  netbsd-8
changeset: 453754:f727bdaf96cb
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Aug 05 14:43:54 2019 +0000

description:
Backout the pullup of r1.476:

        remove offs initialization and XXX gcc comment.

While actually the "offs" variable is always initialized when used, the
gcc version on this branch is not smart enough to recognize that.

diffstat:

 sys/kern/kern_exec.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5c2b745c9ed1 -r f727bdaf96cb sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c      Sun Aug 04 14:55:46 2019 +0000
+++ b/sys/kern/kern_exec.c      Mon Aug 05 14:43:54 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_exec.c,v 1.442.4.5 2019/08/04 11:25:43 martin Exp $       */
+/*     $NetBSD: kern_exec.c,v 1.442.4.6 2019/08/05 14:43:54 martin Exp $       */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.442.4.5 2019/08/04 11:25:43 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.442.4.6 2019/08/05 14:43:54 martin Exp $");
 
 #include "opt_exec.h"
 #include "opt_execfmt.h"
@@ -677,7 +677,7 @@
        struct proc             *p;
        char                    *dp;
        u_int                   modgen;
-       size_t                  offs;
+       size_t                  offss = 0;      // XXX: GCC
 
        KASSERT(data != NULL);
 



Home | Main Index | Thread Index | Old Index