Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64/amd64 Annotate tautological if, so that clang...
details: https://anonhg.NetBSD.org/src/rev/b3b8c0037f30
branches: trunk
changeset: 779757:b3b8c0037f30
user: joerg <joerg%NetBSD.org@localhost>
date: Sat Jun 16 16:42:26 2012 +0000
description:
Annotate tautological if, so that clang doesn't warn about the dt usage
later on.
diffstat:
sys/arch/amd64/amd64/machdep.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 31d5ba722072 -r b3b8c0037f30 sys/arch/amd64/amd64/machdep.c
--- a/sys/arch/amd64/amd64/machdep.c Sat Jun 16 14:38:54 2012 +0000
+++ b/sys/arch/amd64/amd64/machdep.c Sat Jun 16 16:42:26 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.184 2012/06/12 22:16:05 bouyer Exp $ */
+/* $NetBSD: machdep.c,v 1.185 2012/06/16 16:42:26 joerg Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008, 2011
@@ -111,7 +111,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.184 2012/06/12 22:16:05 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.185 2012/06/16 16:42:26 joerg Exp $");
/* #define XENDEBUG_LOW */
@@ -2206,6 +2206,7 @@
} else {
if (seg != GUDATA_SEL || seg != GUDATA32_SEL)
return EINVAL;
+ __builtin_unreachable();
}
sdp = (struct mem_segment_descriptor *)(dt + off);
Home |
Main Index |
Thread Index |
Old Index