bug-bison
[Top][All Lists]
Advanced

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

Generated code triggers a warning


From: Csaba Raduly
Subject: Generated code triggers a warning
Date: Tue, 18 Nov 2008 13:01:12 +0000 (GMT)

Line 2687 in parse-gram.c reads:
yyerror (yymsg);

This triggers a warning from gcc under -Wformat=2
"format not a string literal and no format arguments"

The line should be 
yyerror ("%s", yymsg);

(affects both 2.3 and 2.4)

-- 
Life is complex, with real and imaginary parts.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]