Pull up following revision(s) (requested by mrg in ticket #1761):
sys/kern/kern_core.c: revision 1.37 avoid a GCC warning (happens on -current, -9, and -8.)
This commit is contained in:
parent
c04770902b
commit
a0df508e7a
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_core.c,v 1.24.10.1 2022/09/09 18:24:20 martin Exp $ */
|
||||
/* $NetBSD: kern_core.c,v 1.24.10.2 2022/09/10 08:21:49 martin 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.24.10.1 2022/09/09 18:24:20 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_core.c,v 1.24.10.2 2022/09/10 08:21:49 martin Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/vnode.h>
|
||||
|
@ -102,7 +102,7 @@ coredump(struct lwp *l, const char *pattern)
|
|||
struct coredump_iostate io;
|
||||
struct plimit *lim;
|
||||
int error, error1;
|
||||
char *name, *lastslash;
|
||||
char *name, *lastslash = NULL /* XXXgcc */;
|
||||
|
||||
name = PNBUF_GET();
|
||||
|
||||
|
|
Loading…
Reference in New Issue