forked from github/verilator
Fix RHEL5.6 compile warnings.
This commit is contained in:
parent
fff0ebb5f3
commit
9c5dd8d767
@ -1434,7 +1434,6 @@ static inline QData VL_STREAML_FAST_QQI(int, int lbits, int, QData ld, IData rd_
|
||||
static inline IData VL_STREAML_III(int, int lbits, int, IData ld, IData rd) {
|
||||
IData ret = 0;
|
||||
// Slice size should never exceed the lhs width
|
||||
int ssize = ((int)rd < lbits) ? ((int)rd) : lbits;
|
||||
IData mask = VL_MASK_I(rd);
|
||||
for (int istart=0; istart<lbits; istart+=rd) {
|
||||
int ostart=lbits-rd-istart;
|
||||
@ -1447,7 +1446,6 @@ static inline IData VL_STREAML_III(int, int lbits, int, IData ld, IData rd) {
|
||||
static inline QData VL_STREAML_QQI(int, int lbits, int, QData ld, IData rd) {
|
||||
QData ret = 0;
|
||||
// Slice size should never exceed the lhs width
|
||||
int ssize = ((int)rd < lbits) ? ((int)rd) : lbits;
|
||||
QData mask = VL_MASK_Q(rd);
|
||||
for (int istart=0; istart<lbits; istart+=rd) {
|
||||
int ostart=lbits-rd-istart;
|
||||
|
@ -74,7 +74,8 @@ public:
|
||||
((AstNode*)(nodep))->v3fatalSrc("Newing AstNode object that is already allocated\n");
|
||||
}
|
||||
if (iter == s_nodes.end()) {
|
||||
s_nodes.insert(make_pair(nodep,FLAG_ALLOCATED));
|
||||
int flags = FLAG_ALLOCATED; // This int needed to appease GCC 4.1.2
|
||||
s_nodes.insert(make_pair(nodep,flags));
|
||||
}
|
||||
}
|
||||
static void setUnder(const AstNode* nodep, bool flag) {
|
||||
|
@ -2383,7 +2383,7 @@ private:
|
||||
// Extend
|
||||
AstNRelinker linker;
|
||||
nodep->unlinkFrBack(&linker);
|
||||
bool doSigned;
|
||||
bool doSigned = false;
|
||||
switch (extendRule) {
|
||||
case EXTEND_ZERO: doSigned = false; break;
|
||||
case EXTEND_EXP: doSigned = nodep->isSigned() && expDTypep->isSigned(); break;
|
||||
|
Loading…
Reference in New Issue
Block a user