Fixed gcc compiler warnings (signedness)

This commit is contained in:
Daniel Marjamäki 2011-02-16 20:56:02 +01:00
parent 54e0b60cc5
commit 0ee583e324
3 changed files with 3 additions and 3 deletions

View File

@ -96,7 +96,7 @@ bool CppCheckExecutor::parseFromArgs(CppCheck *cppcheck, int argc, const char* c
std::vector<std::string>::iterator iterBegin = filenames.begin();
for (int i = (int)filenames.size() - 1; i >= 0; i--)
{
if (matcher.Match(filenames[i]))
if (matcher.Match(filenames[(unsigned int)i]))
filenames.erase(iterBegin + i);
}
}

View File

@ -348,7 +348,7 @@ void CppCheck::checkFile(const std::string &code, const char FileName[])
unsigned int pos2 = (unsigned int)ovector[1];
// jump to the end of the match for the next pcre_exec
pos = pos2;
pos = (int)pos2;
// determine location..
ErrorLogger::ErrorMessage::FileLocation loc;

View File

@ -110,7 +110,7 @@ public:
line = 0;
}
FileLocation(const std::string &file, int aline)
FileLocation(const std::string &file, unsigned int aline)
: line(aline), _file(file)
{
}