diff options
author | midipix <writeonce@midipix.org> | 2016-12-15 01:03:34 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-12-15 01:03:34 -0500 |
commit | 1f59979ea1e0b7864fbb92f0b369eb9f7216dede (patch) | |
tree | c552691892bf681064b82fcb5819bd781669d97f /include | |
parent | 4d42dff642412559827951afad8c913783971edc (diff) | |
download | psxtypes-1f59979ea1e0b7864fbb92f0b369eb9f7216dede.tar.bz2 psxtypes-1f59979ea1e0b7864fbb92f0b369eb9f7216dede.tar.xz |
visual studio support: disable non-standard warnings and false positives.
Diffstat (limited to 'include')
-rw-r--r-- | include/psxtypes/compiler/__nt_compiler_msvc.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/psxtypes/compiler/__nt_compiler_msvc.h b/include/psxtypes/compiler/__nt_compiler_msvc.h index f7015ca..3296ad5 100644 --- a/include/psxtypes/compiler/__nt_compiler_msvc.h +++ b/include/psxtypes/compiler/__nt_compiler_msvc.h @@ -2,8 +2,13 @@ #define _PSXTYPES_NT_COMPILER_MSVC_H_ /* sigh */ -#pragma warning ( disable : 4200 ) /* adjust to the 21st century */ -#pragma warning ( disable : 4201 ) /* nameless struct member */ +#pragma warning ( disable : 4054 ) /* cast funtion ptr to data ptr */ +#pragma warning ( disable : 4055 ) /* cast data ptr to funtion ptr */ +#pragma warning ( disable : 4127 ) /* constant expression comparisons */ +#pragma warning ( disable : 4152 ) /* cast a function pointer to void */ +#pragma warning ( disable : 4200 ) /* adjust to the 21st century */ +#pragma warning ( disable : 4201 ) /* nameless struct member */ +#pragma warning ( disable : 4702 ) /* unreachable code */ #pragma warning ( disable : 4706 ) /* assignment within conditional */ #pragma warning ( disable : 4820 ) /* struct member padding */ |