Visual Studio: Fixed warnings

This commit is contained in:
Daniel Marjamäki 2010-08-06 17:32:16 +02:00
parent 567f1da4b4
commit f5823f7747
4 changed files with 4 additions and 4 deletions

View File

@ -2228,7 +2228,7 @@ void CheckMemoryLeakInFunction::checkScope(const Token *Tok1, const std::string
void CheckMemoryLeakInFunction::checkReallocUsage() void CheckMemoryLeakInFunction::checkReallocUsage()
{ {
const Token *tok = _tokenizer->tokens(); const Token *tok = _tokenizer->tokens();
while ((tok = Token::findmatch(tok, ") const| {"))) while (NULL != (tok = Token::findmatch(tok, ") const| {")))
{ {
const Token *startOfFunction = tok; const Token *startOfFunction = tok;

View File

@ -931,7 +931,7 @@ void CppCheck::reportStatus(unsigned int /*index*/, unsigned int /*max*/)
} }
void CppCheck::reportProgress(const std::string &filename, const char stage[], const unsigned char value) void CppCheck::reportProgress(const std::string &filename, const char stage[], const unsigned int value)
{ {
(void)filename; (void)filename;

View File

@ -157,7 +157,7 @@ private:
*/ */
virtual void reportOut(const std::string &outmsg); virtual void reportOut(const std::string &outmsg);
void reportProgress(const std::string &filename, const char stage[], const unsigned char value); void reportProgress(const std::string &filename, const char stage[], const unsigned int value);
unsigned int exitcode; unsigned int exitcode;
std::list<std::string> _errorList; std::list<std::string> _errorList;

View File

@ -174,7 +174,7 @@ public:
* @param stage for example preprocess / tokenize / simplify / check * @param stage for example preprocess / tokenize / simplify / check
* @param value progress value (0-100) * @param value progress value (0-100)
*/ */
virtual void reportProgress(const std::string &filename, const char stage[], const unsigned char value) virtual void reportProgress(const std::string &filename, const char stage[], const unsigned int value)
{ {
(void)filename; (void)filename;
(void)stage; (void)stage;