GCC: Fixed compiler warnings

This commit is contained in:
Daniel Marjamäki 2010-10-30 14:53:25 +02:00
parent b55f6458a2
commit 8d96697623
1 changed files with 4 additions and 1 deletions

View File

@ -714,7 +714,10 @@ void CheckBufferOverrun::checkScope(const Token *tok, const std::vector<std::str
// memset, memcmp, memcpy, strncpy, fgets..
if (varid == 0 && size > 0)
{
ArrayInfo arrayInfo(0U, varnames, total_size / size, size);
ArrayInfo arrayInfo(0U,
varnames,
(unsigned int)(total_size / size),
(unsigned int)size);
if (Token::Match(tok, ("%var% ( " + varnames + " ,").c_str()))
checkFunctionCall(*tok, 1, arrayInfo);
if (Token::Match(tok, ("%var% ( %var% , " + varnames + " ,").c_str()))