DEVTOOLS: Make Coverity happy.
This is mainly due to unhandled clang __has_featrure() buit-in. I do not like this hack, but Coverity proved to be a very good tool for us.
This commit is contained in:
parent
8053989dd1
commit
ca5804a253
6 changed files with 15 additions and 6 deletions
|
@ -20,6 +20,10 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef __has_feature // Optional of course.
|
||||||
|
#define __has_feature(x) 0 // Compatibility with non-clang compilers.
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -33,10 +33,6 @@
|
||||||
#undef main
|
#undef main
|
||||||
#endif // main
|
#endif // main
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include "common/endian.h"
|
#include "common/endian.h"
|
||||||
#include "create_mortdat.h"
|
#include "create_mortdat.h"
|
||||||
#include "enginetext.h"
|
#include "enginetext.h"
|
||||||
|
|
|
@ -30,8 +30,8 @@
|
||||||
#undef main
|
#undef main
|
||||||
#endif // main
|
#endif // main
|
||||||
|
|
||||||
#include <vector>
|
|
||||||
#include "create_neverhood.h"
|
#include "create_neverhood.h"
|
||||||
|
#include <vector>
|
||||||
#include "md5.h"
|
#include "md5.h"
|
||||||
#include "tables.h"
|
#include "tables.h"
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,10 @@
|
||||||
#ifndef TOOLS_CREATE_PROJECT_H
|
#ifndef TOOLS_CREATE_PROJECT_H
|
||||||
#define TOOLS_CREATE_PROJECT_H
|
#define TOOLS_CREATE_PROJECT_H
|
||||||
|
|
||||||
|
#ifndef __has_feature // Optional of course.
|
||||||
|
#define __has_feature(x) 0 // Compatibility with non-clang compilers.
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
* The generated files is used by ScummVM to propose translation of its GUI.
|
* The generated files is used by ScummVM to propose translation of its GUI.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "create_translations.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -34,7 +36,6 @@
|
||||||
#undef main
|
#undef main
|
||||||
#endif // main
|
#endif // main
|
||||||
|
|
||||||
#include "create_translations.h"
|
|
||||||
#include "po_parser.h"
|
#include "po_parser.h"
|
||||||
#include "cp_parser.h"
|
#include "cp_parser.h"
|
||||||
|
|
||||||
|
|
|
@ -28,4 +28,8 @@ typedef unsigned short uint16;
|
||||||
typedef unsigned int uint32;
|
typedef unsigned int uint32;
|
||||||
typedef signed short int16;
|
typedef signed short int16;
|
||||||
|
|
||||||
|
#ifndef __has_feature // Optional of course.
|
||||||
|
#define __has_feature(x) 0 // Compatibility with non-clang compilers.
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* CREATE_TRANSLATIONS_H */
|
#endif /* CREATE_TRANSLATIONS_H */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue