Module Name: src
Committed By: pgoyette
Date: Fri Nov 22 15:57:49 UTC 2019
Modified Files:
src/sys/kern: core_elf32.c
Log Message:
Use __diagused
To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/sys/kern/core_elf32.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/core_elf32.c
diff -u src/sys/kern/core_elf32.c:1.59 src/sys/kern/core_elf32.c:1.60
--- src/sys/kern/core_elf32.c:1.59 Wed Nov 20 19:37:53 2019
+++ src/sys/kern/core_elf32.c Fri Nov 22 15:57:49 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: core_elf32.c,v 1.59 2019/11/20 19:37:53 pgoyette Exp $ */
+/* $NetBSD: core_elf32.c,v 1.60 2019/11/22 15:57:49 pgoyette Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: core_elf32.c,v 1.59 2019/11/20 19:37:53 pgoyette Exp $");
+__KERNEL_RCSID(1, "$NetBSD: core_elf32.c,v 1.60 2019/11/22 15:57:49 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd32.h"
@@ -113,9 +113,7 @@ ELFNAMEEND(coredump)(struct lwp *l, stru
off_t notestart;
size_t notesize;
int error, i;
-#ifdef DIAGNOSTIC
- off_t offset;
-#endif
+ off_t offset __diagused;
struct note_state ns;
struct note_buf *nb;