Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 Mark as __diagused to variables use...
details: https://anonhg.NetBSD.org/src/rev/c9d762504930
branches: trunk
changeset: 327450:c9d762504930
user: nakayama <nakayama%NetBSD.org@localhost>
date: Fri Mar 07 22:51:27 2014 +0000
description:
Mark as __diagused to variables used only in KASSERT.
diffstat:
sys/arch/sparc64/sparc64/netbsd32_machdep.c | 6 +++---
sys/arch/sparc64/sparc64/syscall.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r dc4c78ada91b -r c9d762504930 sys/arch/sparc64/sparc64/netbsd32_machdep.c
--- a/sys/arch/sparc64/sparc64/netbsd32_machdep.c Fri Mar 07 21:15:49 2014 +0000
+++ b/sys/arch/sparc64/sparc64/netbsd32_machdep.c Fri Mar 07 22:51:27 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_machdep.c,v 1.102 2014/01/04 00:10:03 dsl Exp $ */
+/* $NetBSD: netbsd32_machdep.c,v 1.103 2014/03/07 22:51:27 nakayama Exp $ */
/*
* Copyright (c) 1998, 2001 Matthew R. Green
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.102 2014/01/04 00:10:03 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.103 2014/03/07 22:51:27 nakayama Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -1322,7 +1322,7 @@
{
ucontext32_t *uc = arg;
lwp_t *l = curlwp;
- int error;
+ int error __diagused;
error = cpu_setmcontext32(l, &uc->uc_mcontext, uc->uc_flags);
KASSERT(error == 0);
diff -r dc4c78ada91b -r c9d762504930 sys/arch/sparc64/sparc64/syscall.c
--- a/sys/arch/sparc64/sparc64/syscall.c Fri Mar 07 21:15:49 2014 +0000
+++ b/sys/arch/sparc64/sparc64/syscall.c Fri Mar 07 22:51:27 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscall.c,v 1.42 2013/06/27 15:27:46 martin Exp $ */
+/* $NetBSD: syscall.c,v 1.43 2014/03/07 22:51:27 nakayama Exp $ */
/*-
* Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.42 2013/06/27 15:27:46 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.43 2014/03/07 22:51:27 nakayama Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -380,7 +380,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