made cppcheck compile with g++ 4.3

This commit is contained in:
Daniel Marjamäki 2008-08-30 18:29:37 +00:00
parent 0e267441de
commit ae322b5f45
7 changed files with 12 additions and 4 deletions

View File

@ -10,6 +10,7 @@
#include <algorithm>
#include <sstream>
#include <list>
#include <cstring>
#include <stdlib.h> // <- strtoul

View File

@ -6,6 +6,7 @@
#include <list>
#include <string>
#include <sstream>
#include <cstring>
#ifdef __BORLANDC__

View File

@ -6,6 +6,7 @@
#include <list>
#include <sstream>
#include <string>
#include <cstring>
//---------------------------------------------------------------------------

View File

@ -4,7 +4,8 @@
#include "CommonCheck.h"
#include <list>
#include <sstream>
#include <stdlib.h> // <- atoi
#include <stdlib.h> // <- atoi
#include <cstring>
//---------------------------------------------------------------------------

View File

@ -5,7 +5,8 @@
#include <iostream>
#include <sstream>
#include <list>
#include <algorithm>
#include <algorithm>
#include <cstring>
//---------------------------------------------------------------------------
extern bool CheckCodingStyle;
bool OnlyReportUniqueErrors;

View File

@ -29,7 +29,9 @@
#include <algorithm>
#include <iostream>
#include <sstream>
#include <sstream>
#include <cstring>
#ifdef __BORLANDC__
#include <dir.h>

View File

@ -8,6 +8,7 @@
#include <map>
#include <string>
#include <cstring>
#include <stdlib.h> // <- strtoul
#include <stdio.h>
@ -683,7 +684,7 @@ void SimplifyTokenList()
free(tok->str);
char str[10];
// 'sizeof(type *)' has the same size as 'sizeof(char *)'
sprintf( str, "%lu", sizeof(char *));
sprintf( str, "%u", (unsigned int)sizeof(char *));
tok->str = strdup( str );
for (int i = 0; i < 4; i++)