Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libutil lint knows the code is not reachable, but...
details: https://anonhg.NetBSD.org/src/rev/c0c0f7e44700
branches: trunk
changeset: 778656:c0c0f7e44700
user: christos <christos%NetBSD.org@localhost>
date: Sat Apr 07 16:18:24 2012 +0000
description:
lint knows the code is not reachable, but gcc does not.
diffstat:
common/lib/libutil/getfstypename.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r deab115d0062 -r c0c0f7e44700 common/lib/libutil/getfstypename.c
--- a/common/lib/libutil/getfstypename.c Sat Apr 07 16:17:17 2012 +0000
+++ b/common/lib/libutil/getfstypename.c Sat Apr 07 16:18:24 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getfstypename.c,v 1.6 2012/01/16 18:47:57 christos Exp $ */
+/* $NetBSD: getfstypename.c,v 1.7 2012/04/07 16:18:24 christos Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -39,10 +39,10 @@
# include <sys/cdefs.h>
# ifndef _KERNEL
# if !defined(lint)
-__RCSID("$NetBSD: getfstypename.c,v 1.6 2012/01/16 18:47:57 christos Exp $");
+__RCSID("$NetBSD: getfstypename.c,v 1.7 2012/04/07 16:18:24 christos Exp $");
# endif
# else
-__KERNEL_RCSID(0, "$NetBSD: getfstypename.c,v 1.6 2012/01/16 18:47:57 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: getfstypename.c,v 1.7 2012/04/07 16:18:24 christos Exp $");
# endif /* _KERNEL */
# define FSTYPE_ENUMNAME fstype_enum
@@ -125,6 +125,7 @@
return DKW_PTYPE_MINIXFS3;
}
/* Stupid gcc, should know it is impossible to get here */
+ /*UNREACHED*/
return DKW_PTYPE_UNKNOWN;
}
#endif /* !_STANDALONE */
Home |
Main Index |
Thread Index |
Old Index