Module Name: src
Committed By: skrll
Date: Sat Oct 19 14:02:29 UTC 2013
Modified Files:
src/sys/arch/hppa/hppa: trap.c
Log Message:
Use __unused on a variable used in a KASSERT
To generate a diff of this commit:
cvs rdiff -u -r1.102 -r1.103 src/sys/arch/hppa/hppa/trap.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/hppa/hppa/trap.c
diff -u src/sys/arch/hppa/hppa/trap.c:1.102 src/sys/arch/hppa/hppa/trap.c:1.103
--- src/sys/arch/hppa/hppa/trap.c:1.102 Sat Jul 13 10:29:37 2013
+++ src/sys/arch/hppa/hppa/trap.c Sat Oct 19 14:02:29 2013
@@ -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 @@ startlwp(void *arg)
{
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);