summaryrefslogtreecommitdiff
path: root/usr.bin/make/parse.c
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2021-12-15 10:12:20 +0000
committerrillig <rillig@NetBSD.org>2021-12-15 10:12:20 +0000
commitbaa4e9612e521d5856c26508d0bceef363872cf9 (patch)
tree1bcca6a70f906d689100ece4ca5588309cc9428e /usr.bin/make/parse.c
parent67ff605eadff67d5b9ddbb7f306dde02e2633a11 (diff)
make: in ParseDependencyCheckSpec, move default branch to the bottom
No functional change.
Diffstat (limited to 'usr.bin/make/parse.c')
-rw-r--r--usr.bin/make/parse.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c
index 0cd1981c893..594c3b389d2 100644
--- a/usr.bin/make/parse.c
+++ b/usr.bin/make/parse.c
@@ -1,4 +1,4 @@
-/* $NetBSD: parse.c,v 1.581 2021/12/14 01:18:14 rillig Exp $ */
+/* $NetBSD: parse.c,v 1.582 2021/12/15 10:12:20 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -109,7 +109,7 @@
#include "pathnames.h"
/* "@(#)parse.c 8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: parse.c,v 1.581 2021/12/14 01:18:14 rillig Exp $");
+MAKE_RCSID("$NetBSD: parse.c,v 1.582 2021/12/15 10:12:20 rillig Exp $");
/* types and constants */
@@ -1240,11 +1240,6 @@ static void
ParseDependencyCheckSpec(ParseSpecial specType)
{
switch (specType) {
- default:
- Parse_Error(PARSE_WARNING,
- "Special and mundane targets don't mix. "
- "Mundane ones ignored");
- break;
case SP_DEFAULT:
case SP_STALE:
case SP_BEGIN:
@@ -1258,6 +1253,11 @@ ParseDependencyCheckSpec(ParseSpecial specType)
case SP_NOT:
/* Nothing special here -- targets can be empty if it wants. */
break;
+ default:
+ Parse_Error(PARSE_WARNING,
+ "Special and mundane targets don't mix. "
+ "Mundane ones ignored");
+ break;
}
}