Compatibility fixes for gcc 4.5
This commit is contained in:
parent
1bc8f7f29a
commit
96167ffa51
|
@ -1357,8 +1357,9 @@ void CheckBufferOverrun::checkStructVariable()
|
|||
if (scope->nestedIn->isClassOrStruct())
|
||||
continue;
|
||||
|
||||
std::vector<const std::string*> varname(2, nullptr);
|
||||
varname[1] = &arrayInfo.varname();
|
||||
std::vector<const std::string*> varname;
|
||||
varname.push_back(NULL);
|
||||
varname.push_back(&arrayInfo.varname());
|
||||
|
||||
// search the function and it's parameters
|
||||
for (const Token *tok3 = func_scope->classDef; tok3 && tok3 != func_scope->classEnd; tok3 = tok3->next()) {
|
||||
|
|
|
@ -60,7 +60,7 @@ private:
|
|||
|
||||
inline bool endsWith(const std::string &str, char c)
|
||||
{
|
||||
return str.back() == c;
|
||||
return str[str.size()-1U] == c;
|
||||
}
|
||||
|
||||
inline bool endsWith(const std::string &str, const char end[], std::size_t endlen)
|
||||
|
|
Loading…
Reference in New Issue