From fc751b701f37d72c5bfcb2d6805cb2c7bae60b63 Mon Sep 17 00:00:00 2001 From: ru Date: Thu, 12 Apr 2007 18:14:00 +0000 Subject: In .error and .warning, prefer command-line variables to globals, as per documentation. Nudged by: Jeremie Le Hen --- usr.bin/make/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/make') diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c index f125b50..14ffe18 100644 --- a/usr.bin/make/parse.c +++ b/usr.bin/make/parse.c @@ -2235,7 +2235,7 @@ parse_message(char *line, int iserror, int lineno __unused) while (isspace((u_char)*line)) line++; - line = Buf_Peel(Var_Subst(line, VAR_GLOBAL, FALSE)); + line = Buf_Peel(Var_Subst(line, VAR_CMD, FALSE)); Parse_Error(iserror ? PARSE_FATAL : PARSE_WARNING, "%s", line); free(line); -- cgit v1.1