Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make make: in ParseDependencyCheckSpec, move default...



details:   https://anonhg.NetBSD.org/src/rev/1c2f97c66819
branches:  trunk
changeset: 1027678:1c2f97c66819
user:      rillig <rillig%NetBSD.org@localhost>
date:      Wed Dec 15 10:12:20 2021 +0000

description:
make: in ParseDependencyCheckSpec, move default branch to the bottom

No functional change.

diffstat:

 usr.bin/make/parse.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (42 lines):

diff -r 4217259a4ac8 -r 1c2f97c66819 usr.bin/make/parse.c
--- a/usr.bin/make/parse.c      Wed Dec 15 10:07:53 2021 +0000
+++ b/usr.bin/make/parse.c      Wed Dec 15 10:12:20 2021 +0000
@@ -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 @@
 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 @@
        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;
        }
 }
 



Home | Main Index | Thread Index | Old Index