summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-11-03 15:42:12 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-11-03 15:42:12 +0000
commit1b1b6402921b02ce1b650d67a2a3e2df7a566c96 (patch)
tree92a0d56eb2bf5aba617315a7aa32344e0fab7cef /usr.bin
parent9a47d435f1c7a56d1343fecf6721a9243ed5fece (diff)
fix some lint FALLTHROUGH
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/make/var.c3
-rw-r--r--usr.bin/make/varmodifiers.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/make/var.c b/usr.bin/make/var.c
index 9bb206865df..303b152f377 100644
--- a/usr.bin/make/var.c
+++ b/usr.bin/make/var.c
@@ -1,5 +1,5 @@
/* $OpenPackages$ */
-/* $OpenBSD: var.c,v 1.80 2007/09/17 10:39:33 espie Exp $ */
+/* $OpenBSD: var.c,v 1.81 2007/11/03 15:42:10 deraadt Exp $ */
/* $NetBSD: var.c,v 1.18 1997/03/18 19:24:46 christos Exp $ */
/*
@@ -1017,6 +1017,7 @@ Var_Parse(const char *str, /* The string to parse */
Fatal(
"Using $< in a non-suffix rule context is a GNUmake idiom (line %lu of %s)",
n->lineno, n->fname);
+ break;
default:
Error(
"Using undefined dynamic variable $%s (line %lu of %s)",
diff --git a/usr.bin/make/varmodifiers.c b/usr.bin/make/varmodifiers.c
index 18dffeb8851..206b9a6c67a 100644
--- a/usr.bin/make/varmodifiers.c
+++ b/usr.bin/make/varmodifiers.c
@@ -1,5 +1,5 @@
/* $OpenPackages$ */
-/* $OpenBSD: varmodifiers.c,v 1.24 2007/09/17 09:44:20 espie Exp $ */
+/* $OpenBSD: varmodifiers.c,v 1.25 2007/11/03 15:42:11 deraadt Exp $ */
/* $NetBSD: var.c,v 1.18 1997/03/18 19:24:46 christos Exp $ */
/*
@@ -905,7 +905,7 @@ VarRESubstitute(struct Name *word, bool addSpace, Buffer buf, void *patternp)
break;
default:
VarREError(xrv, &pat->re, "Unexpected regex error");
- /* fall through */
+ /* FALLTHROUGH */
case REG_NOMATCH:
if (*wp) {
MAYBE_ADD_SPACE();