Merge pull request #95 from asmaloney/master

Fix a couple of compiler warnings on the Mac
This commit is contained in:
PKEuS 2012-05-18 23:50:14 -07:00
commit 0886d31e9c
2 changed files with 2 additions and 2 deletions

View File

@ -1872,7 +1872,7 @@ CheckBufferOverrun::ArrayInfo & CheckBufferOverrun::ArrayInfo::operator=(const C
* this will not be needed as the declare can be used instead.
*/
CheckBufferOverrun::ArrayInfo::ArrayInfo(unsigned int id, const std::string &name, MathLib::bigint size1, MathLib::bigint n)
: _element_size(size1), _varid(id), _varname(name)
: _varname(name), _element_size(size1), _varid(id)
{
_num.push_back(n);
}

View File

@ -595,7 +595,7 @@ void CheckOther::checkSizeofForPointerSize()
// Jump to the next sizeof token in the function and in the parameter
// This is to allow generic operations with sizeof
for (; tokVar && tokVar->str() != ")" && tokVar->str() != "," && tokVar->str() != "sizeof"; tokVar = tokVar->next());
for (; tokVar && tokVar->str() != ")" && tokVar->str() != "," && tokVar->str() != "sizeof"; tokVar = tokVar->next()) {}
// Now check for the sizeof usage. Once here, everything using sizeof(varid)
// looks suspicious