Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh3/sh3 fix unused variables
details: https://anonhg.NetBSD.org/src/rev/cf1482920929
branches: trunk
changeset: 791191:cf1482920929
user: christos <christos%NetBSD.org@localhost>
date: Thu Nov 07 21:45:04 2013 +0000
description:
fix unused variables
diffstat:
sys/arch/sh3/sh3/cache.c | 5 +++--
sys/arch/sh3/sh3/vm_machdep.c | 6 +++---
2 files changed, 6 insertions(+), 5 deletions(-)
diffs (53 lines):
diff -r a46dd47e6de3 -r cf1482920929 sys/arch/sh3/sh3/cache.c
--- a/sys/arch/sh3/sh3/cache.c Thu Nov 07 21:44:48 2013 +0000
+++ b/sys/arch/sh3/sh3/cache.c Thu Nov 07 21:45:04 2013 +0000
@@ -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 @@
d = *p;
p += 4; /* next line index (16B) */
}
+ __USE(d);
/* Flush I-Cache */
/*
diff -r a46dd47e6de3 -r cf1482920929 sys/arch/sh3/sh3/vm_machdep.c
--- a/sys/arch/sh3/sh3/vm_machdep.c Thu Nov 07 21:44:48 2013 +0000
+++ b/sys/arch/sh3/sh3/vm_machdep.c Thu Nov 07 21:45:04 2013 +0000
@@ -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 @@
{
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);
Home |
Main Index |
Thread Index |
Old Index