forked from github/verilator
Fix clang 3.8.0 warnings.
This commit is contained in:
parent
482bdab0e0
commit
80678ae7bc
@ -961,7 +961,8 @@ void VL_READMEM_W(bool hex, int width, int depth, int array_lsb, int fnwords,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void VL_READMEM_N(bool hex, int width, int depth, int array_lsb, int fnwords,
|
void VL_READMEM_N(bool hex, int width, int depth, int array_lsb, int fnwords,
|
||||||
const string& ofilenamep, void* memp, IData start, IData end) {
|
const string& ofilenamep, void* memp, IData start, IData end) {
|
||||||
|
if (fnwords) {}
|
||||||
FILE* fp = fopen(ofilenamep.c_str(), "r");
|
FILE* fp = fopen(ofilenamep.c_str(), "r");
|
||||||
if (VL_UNLIKELY(!fp)) {
|
if (VL_UNLIKELY(!fp)) {
|
||||||
// We don't report the Verilog source filename as it slow to have to pass it down
|
// We don't report the Verilog source filename as it slow to have to pass it down
|
||||||
|
@ -722,10 +722,11 @@ public:
|
|||||||
virtual int widthTotalBytes() const { return subDTypep()->widthTotalBytes(); }
|
virtual int widthTotalBytes() const { return subDTypep()->widthTotalBytes(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
struct AstParseTypeDType : public AstNodeDType {
|
class AstParseTypeDType : public AstNodeDType {
|
||||||
// Parents: VAR
|
// Parents: VAR
|
||||||
// During parsing, this indicates the type of a parameter is a "parameter type"
|
// During parsing, this indicates the type of a parameter is a "parameter type"
|
||||||
// e.g. the data type is a container of any data type
|
// e.g. the data type is a container of any data type
|
||||||
|
public:
|
||||||
AstParseTypeDType(FileLine* fl)
|
AstParseTypeDType(FileLine* fl)
|
||||||
: AstNodeDType(fl) {}
|
: AstNodeDType(fl) {}
|
||||||
ASTNODE_NODE_FUNCS(ParseTypeDType, PARSETYPEDTYPE)
|
ASTNODE_NODE_FUNCS(ParseTypeDType, PARSETYPEDTYPE)
|
||||||
|
@ -19,6 +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/ 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