Fix RHEL5.6 compile warnings.

This commit is contained in:
Wilson Snyder
2014-04-15 18:18:36 -04:00
parent fff0ebb5f3
commit 9c5dd8d767
3 changed files with 3 additions and 4 deletions
+2 -1
View File
@@ -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) {