made cppcheck compile with g++ 4.3
This commit is contained in:
parent
0e267441de
commit
ae322b5f45
|
@ -10,6 +10,7 @@
|
|||
#include <algorithm>
|
||||
#include <sstream>
|
||||
#include <list>
|
||||
#include <cstring>
|
||||
|
||||
#include <stdlib.h> // <- strtoul
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include <list>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
#include <cstring>
|
||||
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include <list>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include <list>
|
||||
#include <sstream>
|
||||
#include <stdlib.h> // <- atoi
|
||||
#include <cstring>
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include <sstream>
|
||||
#include <list>
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
//---------------------------------------------------------------------------
|
||||
extern bool CheckCodingStyle;
|
||||
bool OnlyReportUniqueErrors;
|
||||
|
|
2
main.cpp
2
main.cpp
|
@ -30,6 +30,8 @@
|
|||
#include <algorithm>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <cstring>
|
||||
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#include <dir.h>
|
||||
|
|
|
@ -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++)
|
||||
|
|
Loading…
Reference in New Issue