mirror of
https://github.com/verilator/verilator.git
synced 2025-01-21 05:44:03 +00:00
Compiling: Fix flexfix adding new warning back in flex 2.5.35
This commit is contained in:
parent
9e38ed9a39
commit
4078902543
@ -19,7 +19,7 @@ my $Opt_Prefix = $ARGV[0] or die "%Error: No prefix specified,";
|
|||||||
|
|
||||||
foreach my $line (<STDIN>) {
|
foreach my $line (<STDIN>) {
|
||||||
# Fix flex 2.6.0 warning
|
# Fix flex 2.6.0 warning
|
||||||
$line =~ s/ > YY_CURRENT_BUFFER_LVALUE->yy_buf_size/ > (int) YY_CURRENT_BUFFER_LVALUE->yy_buf_size/;
|
$line =~ s/\(\(int\) \(\(yy_n_chars\) \+ number_to_move\) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size\)/((int) ((yy_n_chars) + number_to_move) > (int) YY_CURRENT_BUFFER_LVALUE->yy_buf_size)/g;
|
||||||
$line =~ s/ number_to_move == YY_MORE_ADJ / (int)number_to_move == (int)YY_MORE_ADJ /;
|
$line =~ s/ number_to_move == YY_MORE_ADJ / (int)number_to_move == (int)YY_MORE_ADJ /;
|
||||||
# Fix flex 2.5.4 namespace omission
|
# Fix flex 2.5.4 namespace omission
|
||||||
$line =~ s/^class istream;/\#include <iostream>\nusing namespace std;\n/;
|
$line =~ s/^class istream;/\#include <iostream>\nusing namespace std;\n/;
|
||||||
|
Loading…
Reference in New Issue
Block a user