Source-Changes-HG archive

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

[src/trunk]: src/common/lib/libc/gen Fix warning that appears when compiling ...



details:   https://anonhg.NetBSD.org/src/rev/c43ab1ce3080
branches:  trunk
changeset: 846967:c43ab1ce3080
user:      ad <ad%NetBSD.org@localhost>
date:      Thu Dec 05 19:03:39 2019 +0000

description:
Fix warning that appears when compiling in kernel.

diffstat:

 common/lib/libc/gen/radixtree.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r fd364e0cdf8a -r c43ab1ce3080 common/lib/libc/gen/radixtree.c
--- a/common/lib/libc/gen/radixtree.c   Thu Dec 05 18:50:41 2019 +0000
+++ b/common/lib/libc/gen/radixtree.c   Thu Dec 05 19:03:39 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radixtree.c,v 1.19 2019/12/05 18:50:41 ad Exp $        */
+/*     $NetBSD: radixtree.c,v 1.20 2019/12/05 19:03:39 ad Exp $        */
 
 /*-
  * Copyright (c)2011,2012,2013 YAMAMOTO Takashi,
@@ -112,7 +112,7 @@
 #include <sys/cdefs.h>
 
 #if defined(_KERNEL) || defined(_STANDALONE)
-__KERNEL_RCSID(0, "$NetBSD: radixtree.c,v 1.19 2019/12/05 18:50:41 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radixtree.c,v 1.20 2019/12/05 19:03:39 ad Exp $");
 #include <sys/param.h>
 #include <sys/errno.h>
 #include <sys/pool.h>
@@ -122,7 +122,7 @@
 #include <lib/libsa/stand.h>
 #endif /* defined(_STANDALONE) */
 #else /* defined(_KERNEL) || defined(_STANDALONE) */
-__RCSID("$NetBSD: radixtree.c,v 1.19 2019/12/05 18:50:41 ad Exp $");
+__RCSID("$NetBSD: radixtree.c,v 1.20 2019/12/05 19:03:39 ad Exp $");
 #include <assert.h>
 #include <errno.h>
 #include <stdbool.h>
@@ -851,7 +851,9 @@
                        }
                }
                if (i == guard) {
+#if 0
 no_siblings:
+#endif /* 0 */
                        /*
                         * not found.  go to parent.
                         */



Home | Main Index | Thread Index | Old Index