Mark a diagnostic-only variable
This commit is contained in:
parent
f7c781e1d9
commit
419cac9e69
|
@ -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 @@ buf_t *
|
|||
geteblk(int size)
|
||||
{
|
||||
buf_t *bp;
|
||||
int error;
|
||||
int error __diagused;
|
||||
|
||||
mutex_enter(&bufcache_lock);
|
||||
while ((bp = getnewbuf(0, 0, 0)) == NULL)
|
||||
|
|
|
@ -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 @@ swapcluster_flush(struct swapcluster *swc, bool now)
|
|||
int slot;
|
||||
int nused;
|
||||
int nallocated;
|
||||
int error;
|
||||
int error __diagused;
|
||||
|
||||
if (swc->swc_slot == 0) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue