From edd57853f5e257c1b9a1548e2bc62f4c02ff90e8 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Thu, 12 Apr 2007 18:14:00 +0000 Subject: [PATCH] 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(-) diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c index f125b5023796..14ffe180cad4 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);