Mark a diagnostic-only variable

This commit is contained in:
martin 2013-10-25 16:09:29 +00:00
parent f6552d7c17
commit dad6303a94
3 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: subr_kmem.c,v 1.50 2013/04/22 13:22:25 yamt Exp $ */
/* $NetBSD: subr_kmem.c,v 1.51 2013/10/25 16:09:29 martin Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@ -102,7 +102,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: subr_kmem.c,v 1.50 2013/04/22 13:22:25 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: subr_kmem.c,v 1.51 2013/10/25 16:09:29 martin Exp $");
#include <sys/param.h>
#include <sys/callback.h>
@ -549,7 +549,7 @@ kmem_size_check(void *p, size_t sz)
char *
kmem_asprintf(const char *fmt, ...)
{
int size, len;
int size __diagused, len;
va_list va;
char *str;

View File

@ -1,4 +1,4 @@
/* $NetBSD: subr_lwp_specificdata.c,v 1.2 2010/04/12 23:09:28 christos Exp $ */
/* $NetBSD: subr_lwp_specificdata.c,v 1.3 2013/10/25 16:17:35 martin Exp $ */
/*-
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@ -29,7 +29,7 @@
#define _LWP_API_PRIVATE
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: subr_lwp_specificdata.c,v 1.2 2010/04/12 23:09:28 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: subr_lwp_specificdata.c,v 1.3 2013/10/25 16:17:35 martin Exp $");
#include <sys/param.h>
#include <sys/lwp.h>
@ -74,7 +74,7 @@ lwp_specific_key_delete(specificdata_key_t key)
void
lwp_initspecific(struct lwp *l)
{
int error;
int error __diagused;
error = specificdata_init(lwp_specificdata_domain, &l->l_specdataref);
KASSERT(error == 0);

View File

@ -1,4 +1,4 @@
/* $NetBSD: subr_xcall.c,v 1.15 2013/04/07 00:31:40 rmind Exp $ */
/* $NetBSD: subr_xcall.c,v 1.16 2013/10/25 16:18:36 martin Exp $ */
/*-
* Copyright (c) 2007-2010 The NetBSD Foundation, Inc.
@ -74,7 +74,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: subr_xcall.c,v 1.15 2013/04/07 00:31:40 rmind Exp $");
__KERNEL_RCSID(0, "$NetBSD: subr_xcall.c,v 1.16 2013/10/25 16:18:36 martin Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -159,7 +159,7 @@ void
xc_init_cpu(struct cpu_info *ci)
{
static bool again = false;
int error;
int error __diagused;
if (!again) {
/* Autoconfiguration will prevent re-entry. */