Module Name: src Committed By: justin Date: Tue Jul 7 09:30:24 UTC 2015
Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c Log Message: 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 To generate a diff of this commit: cvs rdiff -u -r1.99 -r1.100 src/sys/fs/tmpfs/tmpfs_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/fs/tmpfs/tmpfs_subr.c diff -u src/sys/fs/tmpfs/tmpfs_subr.c:1.99 src/sys/fs/tmpfs/tmpfs_subr.c:1.100 --- src/sys/fs/tmpfs/tmpfs_subr.c:1.99 Mon Jul 6 10:07:12 2015 +++ src/sys/fs/tmpfs/tmpfs_subr.c Tue Jul 7 09:30:24 2015 @@ -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 @@ tmpfs_newvnode(struct mount *mp, struct } 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;