fix unused variables

This commit is contained in:
christos 2013-11-07 21:45:04 +00:00
parent a6b92c971d
commit f148a5082f
2 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cache.c,v 1.16 2009/03/18 10:22:36 cegger Exp $ */
/* $NetBSD: cache.c,v 1.17 2013/11/07 21:45:04 christos Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cache.c,v 1.16 2009/03/18 10:22:36 cegger Exp $");
__KERNEL_RCSID(0, "$NetBSD: cache.c,v 1.17 2013/11/07 21:45:04 christos Exp $");
#include "opt_cache.h"
#include "opt_memsize.h" /* IOM_RAM_BEGIN */
@ -167,6 +167,7 @@ __cache_flush(void)
d = *p;
p += 4; /* next line index (16B) */
}
__USE(d);
/* Flush I-Cache */
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.75 2012/02/19 21:06:27 rmind Exp $ */
/* $NetBSD: vm_machdep.c,v 1.76 2013/11/07 21:45:04 christos Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc. All rights reserved.
@ -81,7 +81,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.75 2012/02/19 21:06:27 rmind Exp $");
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.76 2013/11/07 21:45:04 christos Exp $");
#include "opt_kstack_debug.h"
@ -269,7 +269,7 @@ startlwp(void *arg)
{
ucontext_t *uc = arg;
lwp_t *l = curlwp;
int error;
int error __diagused;
error = cpu_setmcontext(l, &uc->uc_mcontext, uc->uc_flags);
KASSERT(error == 0);