verilog_parser: Fix Bison warning
authorBen Widawsky <ben@bwidawsk.net>
Mon, 6 May 2019 02:29:11 +0000 (19:29 -0700)
committerBen Widawsky <ben@bwidawsk.net>
Mon, 6 May 2019 02:36:27 +0000 (19:36 -0700)
As of Bison 2.6, name-prefix is deprecated. This fixes
frontends/verilog/verilog_parser.y:99.1-34: warning: deprecated directive, use ‘%define api.prefix {frontend_verilog_yy}’ [-Wdeprecated]
 %name-prefix "frontend_verilog_yy"

For details: https://www.gnu.org/software/bison/manual/html_node/Multiple-Parsers.html

Compile tested only.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
frontends/verilog/verilog_parser.y

index 08377ad9a36d742500551beeefbb3f4ab538a4ac..46b3a90251c175a85738564ae64fd21e409f8983 100644 (file)
@@ -96,7 +96,7 @@ static void free_attr(std::map<std::string, AstNode*> *al)
 
 %}
 
-%name-prefix "frontend_verilog_yy"
+%define api.prefix {frontend_verilog_yy}
 
 %union {
        std::string *string;