From 0725999f0a958187185a9f116b747cb8f401423d Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 2 Feb 2016 19:32:17 -0500 Subject: [PATCH] flexfix: Match Verilog-perl fix for new gcc. --- src/flexfix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/flexfix b/src/flexfix index 063c1e67c..dda8e8d97 100755 --- a/src/flexfix +++ b/src/flexfix @@ -18,6 +18,8 @@ my $Opt_Prefix = $ARGV[0] or die "%Error: No prefix specified,"; foreach my $line () { + # Fix flex 2.6.0 warning + $line =~ s/ number_to_move == YY_MORE_ADJ / (int)number_to_move == (int)YY_MORE_ADJ /; # Fix flex 2.5.4 namespace omission $line =~ s/^class istream;/\#include \nusing namespace std;\n/; # Fix flex 2.5.31 redefinition