Fixed gcc compiler warnings (signedness)
This commit is contained in:
parent
54e0b60cc5
commit
0ee583e324
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue