From c9b0c94a2c371d865247a2275a70f2377ee2ee03 Mon Sep 17 00:00:00 2001 From: erg Date: Mon, 6 Dec 2010 18:42:25 +0000 Subject: [PATCH] Fix warning about splitting ambiguous name to include file name --- lib/cgraph/scan.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cgraph/scan.l b/lib/cgraph/scan.l index 8d5866330..ce809d333 100644 --- a/lib/cgraph/scan.l +++ b/lib/cgraph/scan.l @@ -133,7 +133,7 @@ static int chkNum(void) { unsigned char c = (unsigned char)yytext[yyleng-1]; /* last character */ if (!isdigit(c) && (c != '.')) { /* c is letter */ char buf[BUFSIZ]; - sprintf(buf,"syntax error - badly formed number '%s' in line %d\n",yytext,line_num); + sprintf(buf,"syntax error - badly formed number '%s' in line %d of %s\n",yytext,line_num, InputFile); strcat (buf, "splits into two name tokens\n"); agerr(AGWARN,buf); return 1; -- 2.40.0