ignore PVS=-Studio files

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

2
.gitignore vendored
View File

@ -38,3 +38,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;