Source-Changes-HG archive

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

[src/trunk]: src/sys/kern avoid a GCC warning (happens on -current, -9, and -8.)



details:   https://anonhg.NetBSD.org/src/rev/6d60133320d9
branches:  trunk
changeset: 369951:6d60133320d9
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Sep 10 07:30:41 2022 +0000

description:
avoid a GCC warning (happens on -current, -9, and -8.)

diffstat:

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

diffs (27 lines):

diff -r a6b58b1f0af5 -r 6d60133320d9 sys/kern/kern_core.c
--- a/sys/kern/kern_core.c      Fri Sep 09 22:15:13 2022 +0000
+++ b/sys/kern/kern_core.c      Sat Sep 10 07:30:41 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_core.c,v 1.36 2022/09/09 14:30:17 christos Exp $  */
+/*     $NetBSD: kern_core.c,v 1.37 2022/09/10 07:30:41 mrg Exp $       */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_core.c,v 1.36 2022/09/09 14:30:17 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_core.c,v 1.37 2022/09/10 07:30:41 mrg Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_execfmt.h"
@@ -127,7 +127,7 @@
        struct coredump_iostate io;
        struct plimit           *lim;
        int                     error, error1;
-       char                    *name, *lastslash;
+       char                    *name, *lastslash = NULL /* XXXgcc */;
 
        name = PNBUF_GET();
 



Home | Main Index | Thread Index | Old Index