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/e102184dedb4
branches:  trunk
changeset: 790881:e102184dedb4
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Oct 25 20:28:33 2013 +0000

description:
Mark a diagnostic-only variable

diffstat:

 sys/kern/vfs_bio.c    |  6 +++---
 sys/uvm/uvm_pdaemon.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 34c401b0cb7b -r e102184dedb4 sys/kern/vfs_bio.c
--- a/sys/kern/vfs_bio.c        Fri Oct 25 20:27:29 2013 +0000
+++ b/sys/kern/vfs_bio.c        Fri Oct 25 20:28:33 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_bio.c,v 1.247 2013/09/30 18:58:00 hannken Exp $    */
+/*     $NetBSD: vfs_bio.c,v 1.248 2013/10/25 20:36:08 martin Exp $     */
 
 /*-
  * Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -123,7 +123,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.247 2013/09/30 18:58:00 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.248 2013/10/25 20:36:08 martin Exp $");
 
 #include "opt_bufcache.h"
 
@@ -1211,7 +1211,7 @@
 geteblk(int size)
 {
        buf_t *bp;
-       int error;
+       int error __diagused;
 
        mutex_enter(&bufcache_lock);
        while ((bp = getnewbuf(0, 0, 0)) == NULL)
diff -r 34c401b0cb7b -r e102184dedb4 sys/uvm/uvm_pdaemon.c
--- a/sys/uvm/uvm_pdaemon.c     Fri Oct 25 20:27:29 2013 +0000
+++ b/sys/uvm/uvm_pdaemon.c     Fri Oct 25 20:28:33 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_pdaemon.c,v 1.107 2012/07/30 23:56:48 matt Exp $   */
+/*     $NetBSD: uvm_pdaemon.c,v 1.108 2013/10/25 20:28:33 martin Exp $ */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_pdaemon.c,v 1.107 2012/07/30 23:56:48 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_pdaemon.c,v 1.108 2013/10/25 20:28:33 martin Exp $");
 
 #include "opt_uvmhist.h"
 #include "opt_readahead.h"
@@ -516,7 +516,7 @@
        int slot;
        int nused;
        int nallocated;
-       int error;
+       int error __diagused;
 
        if (swc->swc_slot == 0) {
                return;



Home | Main Index | Thread Index | Old Index