Fix GCC warnings
This commit is contained in:
parent
f632ea500c
commit
43213fcdc2
|
|
@ -1251,8 +1251,9 @@ private:
|
||||||
public:
|
public:
|
||||||
// CONSTRUCTORS
|
// CONSTRUCTORS
|
||||||
explicit EmitVarTspSorter(const MTaskIdSet& mtaskIds)
|
explicit EmitVarTspSorter(const MTaskIdSet& mtaskIds)
|
||||||
: m_mtaskIds{mtaskIds}
|
: m_mtaskIds{mtaskIds} {
|
||||||
, m_serial(++m_serialNext) {} // Need () or GCC 4.8 false warning
|
m_serial = ++m_serialNext; // Cannot be ()/{} or GCC 4.8 false warning
|
||||||
|
}
|
||||||
virtual ~EmitVarTspSorter() {}
|
virtual ~EmitVarTspSorter() {}
|
||||||
// METHODS
|
// METHODS
|
||||||
virtual bool operator<(const TspStateBase& other) const override {
|
virtual bool operator<(const TspStateBase& other) const override {
|
||||||
|
|
|
||||||
|
|
@ -704,7 +704,7 @@ class EmitVStreamVisitor : public EmitVBaseVisitor {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
EmitVStreamVisitor(AstNode* nodep, std::ostream& os)
|
EmitVStreamVisitor(AstNode* nodep, std::ostream& os)
|
||||||
: m_os{os} {
|
: m_os(os) { // Need () or GCC 4.8 false warning
|
||||||
iterate(nodep);
|
iterate(nodep);
|
||||||
}
|
}
|
||||||
virtual ~EmitVStreamVisitor() override {}
|
virtual ~EmitVStreamVisitor() override {}
|
||||||
|
|
@ -743,7 +743,7 @@ public:
|
||||||
int column() const { return m_column; }
|
int column() const { return m_column; }
|
||||||
EmitVPrefixedFormatter(std::ostream& os, const string& prefix, int flWidth)
|
EmitVPrefixedFormatter(std::ostream& os, const string& prefix, int flWidth)
|
||||||
: V3OutFormatter{"__STREAM", V3OutFormatter::LA_VERILOG}
|
: V3OutFormatter{"__STREAM", V3OutFormatter::LA_VERILOG}
|
||||||
, m_os{os}
|
, m_os(os) // Need () or GCC 4.8 false warning
|
||||||
, m_prefix{prefix}
|
, m_prefix{prefix}
|
||||||
, m_flWidth{flWidth} {
|
, m_flWidth{flWidth} {
|
||||||
m_column = 0;
|
m_column = 0;
|
||||||
|
|
|
||||||
|
|
@ -288,7 +288,7 @@ private:
|
||||||
public:
|
public:
|
||||||
// CONSTRUCTORS
|
// CONSTRUCTORS
|
||||||
ModuleFilesXmlVisitor(AstNetlist* nodep, std::ostream& os)
|
ModuleFilesXmlVisitor(AstNetlist* nodep, std::ostream& os)
|
||||||
: m_os{os} {
|
: m_os(os) { // Need () or GCC 4.8 false warning
|
||||||
// Operate on whole netlist
|
// Operate on whole netlist
|
||||||
nodep->accept(*this);
|
nodep->accept(*this);
|
||||||
// Xml output
|
// Xml output
|
||||||
|
|
@ -360,7 +360,7 @@ private:
|
||||||
public:
|
public:
|
||||||
// CONSTRUCTORS
|
// CONSTRUCTORS
|
||||||
HierCellsXmlVisitor(AstNetlist* nodep, std::ostream& os)
|
HierCellsXmlVisitor(AstNetlist* nodep, std::ostream& os)
|
||||||
: m_os{os} {
|
: m_os(os) { // Need () or GCC 4.8 false warning
|
||||||
// Operate on whole netlist
|
// Operate on whole netlist
|
||||||
nodep->accept(*this);
|
nodep->accept(*this);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -359,7 +359,7 @@ public:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
explicit Visitor(RefsInModule& p)
|
explicit Visitor(RefsInModule& p)
|
||||||
: m_parent{p} {}
|
: m_parent(p) {} // Need () or GCC 4.8 false warning
|
||||||
} v(*this);
|
} v(*this);
|
||||||
v.iterate(nodep);
|
v.iterate(nodep);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,7 @@ public:
|
||||||
|
|
||||||
// CONSTRUCTORS
|
// CONSTRUCTORS
|
||||||
explicit StatsReport(std::ofstream* aofp)
|
explicit StatsReport(std::ofstream* aofp)
|
||||||
: os{*aofp} {
|
: os(*aofp) { // Need () or GCC 4.8 false warning
|
||||||
header();
|
header();
|
||||||
sumit();
|
sumit();
|
||||||
stars();
|
stars();
|
||||||
|
|
|
||||||
|
|
@ -302,7 +302,7 @@ class TristatePinVisitor : public TristateBaseVisitor {
|
||||||
public:
|
public:
|
||||||
// CONSTRUCTORS
|
// CONSTRUCTORS
|
||||||
TristatePinVisitor(AstNode* nodep, TristateGraph& tgraph, bool lvalue)
|
TristatePinVisitor(AstNode* nodep, TristateGraph& tgraph, bool lvalue)
|
||||||
: m_tgraph{tgraph}
|
: m_tgraph(tgraph) // Need () or GCC 4.8 false warning
|
||||||
, m_lvalue{lvalue} {
|
, m_lvalue{lvalue} {
|
||||||
iterate(nodep);
|
iterate(nodep);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue