ignore PVS=-Studio files

This commit is contained in:
Enno Rehling 2015-07-12 13:15:10 +02:00
parent 7087c0e0ab
commit 6ea859ecea
3 changed files with 5 additions and 3 deletions

2
.gitignore vendored
View File

@ -37,3 +37,5 @@ game-e3/reports/
tags tags
Thumbs.db Thumbs.db
.gdb_history .gdb_history
*.cfg
*.cmd

View File

@ -58,7 +58,7 @@ extern "C" {
sppobj_t typ; sppobj_t typ;
int flag; int flag;
union { union {
struct region *r; struct region *r; //TODO: V117 http://www.viva64.com/en/V117 Memsize type is used in the union.
struct unit *u; struct unit *u;
struct building *b; struct building *b;
struct ship *sh; struct ship *sh;

View File

@ -5,12 +5,12 @@ extern "C" {
#endif #endif
typedef union variant { typedef union variant {
void *v; void *v; //TODO: V117 http://www.viva64.com/en/V117 Memsize type is used in the union.
int i; int i;
char c; char c;
short s; short s;
short sa[2]; short sa[2];
char ca[4]; char ca[4]; //TODO: V112 http://www.viva64.com/en/V112 Dangerous magic number 4 used: char ca[4];.
float f; float f;
} variant; } variant;