Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/chfs Fix build without DIAGNOSTIC



details:   https://anonhg.NetBSD.org/src/rev/129ddb2ca4a2
branches:  trunk
changeset: 999742:129ddb2ca4a2
user:      ryoon <ryoon%NetBSD.org@localhost>
date:      Mon Jun 17 17:14:56 2019 +0000

description:
Fix build without DIAGNOSTIC

diffstat:

 sys/ufs/chfs/chfs_malloc.c |  4 ++--
 sys/ufs/chfs/chfs_pool.c   |  4 ++--
 sys/ufs/chfs/chfs_scan.c   |  4 ++--
 sys/ufs/chfs/chfs_vnops.c  |  4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diffs (72 lines):

diff -r bf46a525ef37 -r 129ddb2ca4a2 sys/ufs/chfs/chfs_malloc.c
--- a/sys/ufs/chfs/chfs_malloc.c        Mon Jun 17 17:06:39 2019 +0000
+++ b/sys/ufs/chfs/chfs_malloc.c        Mon Jun 17 17:14:56 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chfs_malloc.c,v 1.5 2017/11/09 22:16:38 christos Exp $ */
+/*     $NetBSD: chfs_malloc.c,v 1.6 2019/06/17 17:14:56 ryoon Exp $    */
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -218,7 +218,7 @@
 struct chfs_node_ref*
 chfs_alloc_node_ref(struct chfs_eraseblock *cheb)
 {
-       struct chfs_node_ref *nref, *new, *old;
+       struct chfs_node_ref *nref, *new, *old __diagused;
        old = cheb->last_node;
        nref = cheb->last_node;
 
diff -r bf46a525ef37 -r 129ddb2ca4a2 sys/ufs/chfs/chfs_pool.c
--- a/sys/ufs/chfs/chfs_pool.c  Mon Jun 17 17:06:39 2019 +0000
+++ b/sys/ufs/chfs/chfs_pool.c  Mon Jun 17 17:14:56 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chfs_pool.c,v 1.3 2018/01/29 15:48:50 sevan Exp $      */
+/*     $NetBSD: chfs_pool.c,v 1.4 2019/06/17 17:14:56 ryoon Exp $      */
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -62,7 +62,7 @@
 chfs_pool_init(struct chfs_pool *chpp, size_t size, const char *what,
     struct chfs_mount *chmp)
 {
-       int cnt;
+       int cnt __diagused;
 
        cnt = snprintf(chpp->chp_name, sizeof(chpp->chp_name),
            "%s_chfs_%p", what, chmp);
diff -r bf46a525ef37 -r 129ddb2ca4a2 sys/ufs/chfs/chfs_scan.c
--- a/sys/ufs/chfs/chfs_scan.c  Mon Jun 17 17:06:39 2019 +0000
+++ b/sys/ufs/chfs/chfs_scan.c  Mon Jun 17 17:14:56 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chfs_scan.c,v 1.7 2017/06/01 02:45:15 chs Exp $        */
+/*     $NetBSD: chfs_scan.c,v 1.8 2019/06/17 17:14:56 ryoon Exp $      */
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -178,7 +178,7 @@
 chfs_scan_mark_dirent_obsolete(struct chfs_mount *chmp,
     struct chfs_vnode_cache *vc, struct chfs_dirent *fd)
 {
-       struct chfs_eraseblock *cheb;
+       struct chfs_eraseblock *cheb __diagused;
        struct chfs_node_ref *prev, *nref;
 
        nref = fd->nref;
diff -r bf46a525ef37 -r 129ddb2ca4a2 sys/ufs/chfs/chfs_vnops.c
--- a/sys/ufs/chfs/chfs_vnops.c Mon Jun 17 17:06:39 2019 +0000
+++ b/sys/ufs/chfs/chfs_vnops.c Mon Jun 17 17:14:56 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chfs_vnops.c,v 1.33 2017/05/26 14:21:02 riastradh Exp $        */
+/*     $NetBSD: chfs_vnops.c,v 1.34 2019/06/17 17:14:56 ryoon Exp $    */
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -60,7 +60,7 @@
        struct chfs_inode* ip;
        struct ufsmount* ump;
        struct chfs_mount* chmp;
-       struct chfs_vnode_cache* chvc;
+       struct chfs_vnode_cache* chvc __diagused;
        struct chfs_dirent* fd;
 
        dbg("lookup(): %s\n", cnp->cn_nameptr);



Home | Main Index | Thread Index | Old Index