Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/d21bb4bd02a6
branches:  trunk
changeset: 790876:d21bb4bd02a6
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Oct 25 20:05:39 2013 +0000

description:
Mark a diagnostic-only variable

diffstat:

 sys/ufs/lfs/ulfs_lookup.c |  6 +++---
 sys/uvm/uvm_anon.c        |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 4ce1588277de -r d21bb4bd02a6 sys/ufs/lfs/ulfs_lookup.c
--- a/sys/ufs/lfs/ulfs_lookup.c Fri Oct 25 19:55:22 2013 +0000
+++ b/sys/ufs/lfs/ulfs_lookup.c Fri Oct 25 20:05:39 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ulfs_lookup.c,v 1.16 2013/10/17 21:01:08 christos Exp $        */
+/*     $NetBSD: ulfs_lookup.c,v 1.17 2013/10/25 20:05:39 martin Exp $  */
 /*  from NetBSD: ufs_lookup.c,v 1.122 2013/01/22 09:39:18 dholland Exp  */
 
 /*
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ulfs_lookup.c,v 1.16 2013/10/17 21:01:08 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ulfs_lookup.c,v 1.17 2013/10/25 20:05:39 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_lfs.h"
@@ -1472,7 +1472,7 @@
 ulfs_blkatoff(struct vnode *vp, off_t offset, char **res, struct buf **bpp,
     bool modify)
 {
-       struct inode *ip;
+       struct inode *ip __diagused;
        struct buf *bp;
        daddr_t lbn;
        const int dirrablks = ulfs_dirrablks;
diff -r 4ce1588277de -r d21bb4bd02a6 sys/uvm/uvm_anon.c
--- a/sys/uvm/uvm_anon.c        Fri Oct 25 19:55:22 2013 +0000
+++ b/sys/uvm/uvm_anon.c        Fri Oct 25 20:05:39 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_anon.c,v 1.62 2011/08/18 14:13:59 yamt Exp $       */
+/*     $NetBSD: uvm_anon.c,v 1.63 2013/10/25 20:08:11 martin Exp $     */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_anon.c,v 1.62 2011/08/18 14:13:59 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_anon.c,v 1.63 2013/10/25 20:08:11 martin Exp $");
 
 #include "opt_uvmhist.h"
 
@@ -431,7 +431,7 @@
 uvm_anon_release(struct vm_anon *anon)
 {
        struct vm_page *pg = anon->an_page;
-       bool success;
+       bool success __diagused;
 
        KASSERT(mutex_owned(anon->an_lock));
        KASSERT(pg != NULL);



Home | Main Index | Thread Index | Old Index