make: in ParseDependencyCheckSpec, move default branch to the bottom

No functional change.
This commit is contained in:
rillig 2021-12-15 10:12:20 +00:00
parent 426924e580
commit dabce73e83
1 changed files with 7 additions and 7 deletions

View File

@ -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;
}
}