Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch mark a diagnostic only variable
details: https://anonhg.NetBSD.org/src/rev/9c3d2429786b
branches: trunk
changeset: 327580:9c3d2429786b
user: para <para%NetBSD.org@localhost>
date: Tue Mar 11 20:54:29 2014 +0000
description:
mark a diagnostic only variable
diffstat:
sys/arch/amd64/amd64/trap.c | 6 +++---
sys/arch/x86/x86/vm_machdep.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 61b76a755db5 -r 9c3d2429786b sys/arch/amd64/amd64/trap.c
--- a/sys/arch/amd64/amd64/trap.c Tue Mar 11 20:35:47 2014 +0000
+++ b/sys/arch/amd64/amd64/trap.c Tue Mar 11 20:54:29 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.77 2014/02/12 19:53:49 dsl Exp $ */
+/* $NetBSD: trap.c,v 1.78 2014/03/11 20:54:29 para Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.77 2014/02/12 19:53:49 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.78 2014/03/11 20:54:29 para Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -705,7 +705,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);
diff -r 61b76a755db5 -r 9c3d2429786b sys/arch/x86/x86/vm_machdep.c
--- a/sys/arch/x86/x86/vm_machdep.c Tue Mar 11 20:35:47 2014 +0000
+++ b/sys/arch/x86/x86/vm_machdep.c Tue Mar 11 20:54:29 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.24 2014/02/25 22:16:52 dsl Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.25 2014/03/11 20:55:19 para Exp $ */
/*-
* Copyright (c) 1982, 1986 The Regents of the University of California.
@@ -80,7 +80,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.24 2014/02/25 22:16:52 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.25 2014/03/11 20:55:19 para Exp $");
#include "opt_mtrr.h"
@@ -270,7 +270,7 @@
kvtop(void *addr)
{
paddr_t pa;
- bool ret;
+ bool ret __diagused;
ret = pmap_extract(pmap_kernel(), (vaddr_t)addr, &pa);
KASSERT(ret == true);
Home |
Main Index |
Thread Index |
Old Index