Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hppa/hppa Use __unused on a variable used in a KASSERT
details: https://anonhg.NetBSD.org/src/rev/c80196d217c1
branches: trunk
changeset: 790682:c80196d217c1
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Oct 19 14:02:29 2013 +0000
description:
Use __unused on a variable used in a KASSERT
diffstat:
sys/arch/hppa/hppa/trap.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 109710bb1ddb -r c80196d217c1 sys/arch/hppa/hppa/trap.c
--- a/sys/arch/hppa/hppa/trap.c Sat Oct 19 14:00:59 2013 +0000
+++ b/sys/arch/hppa/hppa/trap.c Sat Oct 19 14:02:29 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.102 2013/07/13 10:29:37 skrll Exp $ */
+/* $NetBSD: trap.c,v 1.103 2013/10/19 14:02:29 skrll Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.102 2013/07/13 10:29:37 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.103 2013/10/19 14:02:29 skrll Exp $");
/* #define INTRDEBUG */
/* #define TRAPDEBUG */
@@ -1301,7 +1301,7 @@
{
ucontext_t *uc = arg;
lwp_t *l = curlwp;
- int error;
+ int error __unused;
error = cpu_setmcontext(l, &uc->uc_mcontext, uc->uc_flags);
KASSERT(error == 0);
Home |
Main Index |
Thread Index |
Old Index