From f148a5082f121cd9084633e28563be7a923f7067 Mon Sep 17 00:00:00 2001 From: christos Date: Thu, 7 Nov 2013 21:45:04 +0000 Subject: [PATCH] fix unused variables --- sys/arch/sh3/sh3/cache.c | 5 +++-- sys/arch/sh3/sh3/vm_machdep.c | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/sys/arch/sh3/sh3/cache.c b/sys/arch/sh3/sh3/cache.c index 14ec2c44ef54..61c187c89780 100644 --- a/sys/arch/sh3/sh3/cache.c +++ b/sys/arch/sh3/sh3/cache.c @@ -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 -__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 */ /* diff --git a/sys/arch/sh3/sh3/vm_machdep.c b/sys/arch/sh3/sh3/vm_machdep.c index 28a37a773cc6..8fe6c9c6101f 100644 --- a/sys/arch/sh3/sh3/vm_machdep.c +++ b/sys/arch/sh3/sh3/vm_machdep.c @@ -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 -__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);