Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Mark a diagnostic-only variable



details:   https://anonhg.NetBSD.org/src/rev/1414831eb376
branches:  trunk
changeset: 790868:1414831eb376
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Oct 25 15:51:36 2013 +0000

description:
Mark a diagnostic-only variable

diffstat:

 sys/kern/kern_condvar.c |  6 +++---
 sys/kern/kern_proc.c    |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r a7476a2b40fe -r 1414831eb376 sys/kern/kern_condvar.c
--- a/sys/kern/kern_condvar.c   Fri Oct 25 15:44:39 2013 +0000
+++ b/sys/kern/kern_condvar.c   Fri Oct 25 15:51:36 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_condvar.c,v 1.33 2013/09/14 13:18:31 joerg Exp $  */
+/*     $NetBSD: kern_condvar.c,v 1.34 2013/10/25 15:51:36 martin Exp $ */
 
 /*-
  * Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_condvar.c,v 1.33 2013/09/14 13:18:31 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_condvar.c,v 1.34 2013/10/25 15:51:36 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -190,7 +190,7 @@
 static void
 cv_unsleep(lwp_t *l, bool cleanup)
 {
-       kcondvar_t *cv;
+       kcondvar_t *cv __diagused;
 
        cv = (kcondvar_t *)(uintptr_t)l->l_wchan;
 
diff -r a7476a2b40fe -r 1414831eb376 sys/kern/kern_proc.c
--- a/sys/kern/kern_proc.c      Fri Oct 25 15:44:39 2013 +0000
+++ b/sys/kern/kern_proc.c      Fri Oct 25 15:51:36 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_proc.c,v 1.188 2013/09/10 21:30:21 matt Exp $     */
+/*     $NetBSD: kern_proc.c,v 1.189 2013/10/25 15:52:57 martin Exp $   */
 
 /*-
  * Copyright (c) 1999, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.188 2013/09/10 21:30:21 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.189 2013/10/25 15:52:57 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_kstack.h"
@@ -1452,7 +1452,7 @@
 void
 proc_initspecific(struct proc *p)
 {
-       int error;
+       int error __diagused;
 
        error = specificdata_init(proc_specificdata_domain, &p->p_specdataref);
        KASSERT(error == 0);



Home | Main Index | Thread Index | Old Index