Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/tmpfs This enum is likely to be made unsigned by the ...



details:   https://anonhg.NetBSD.org/src/rev/913bed6550e9
branches:  trunk
changeset: 809378:913bed6550e9
user:      justin <justin%NetBSD.org@localhost>
date:      Tue Jul 07 09:30:24 2015 +0000

description:
This enum is likely to be made unsigned by the compiler, so the assertion
will not work and clang objects with -Wtautological-constant-out-of-range-compare

diffstat:

 sys/fs/tmpfs/tmpfs_subr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 34957d7828e7 -r 913bed6550e9 sys/fs/tmpfs/tmpfs_subr.c
--- a/sys/fs/tmpfs/tmpfs_subr.c Mon Jul 06 15:09:17 2015 +0000
+++ b/sys/fs/tmpfs/tmpfs_subr.c Tue Jul 07 09:30:24 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tmpfs_subr.c,v 1.99 2015/07/06 10:07:12 hannken Exp $  */
+/*     $NetBSD: tmpfs_subr.c,v 1.100 2015/07/07 09:30:24 justin Exp $  */
 
 /*
  * Copyright (c) 2005-2013 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tmpfs_subr.c,v 1.99 2015/07/06 10:07:12 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tmpfs_subr.c,v 1.100 2015/07/07 09:30:24 justin Exp $");
 
 #include <sys/param.h>
 #include <sys/cprng.h>
@@ -222,7 +222,7 @@
        } while (node->tn_gen == 0);
 
        /* Generic initialization. */
-       KASSERT(vap->va_type != VNOVAL);
+       KASSERT((int)vap->va_type != VNOVAL);
        node->tn_type = vap->va_type;
        node->tn_size = 0;
        node->tn_flags = 0;



Home | Main Index | Thread Index | Old Index