Skip to content

Commit cb436c3

Browse files
Philip Oakleydscho
authored andcommitted
msvc: add pragmas for common warnings
MSVC can be overzealous about some warnings. Disable them. Signed-off-by: Philip Oakley <[email protected]>
1 parent 362286a commit cb436c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compat/msvc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
#include <malloc.h>
77
#include <io.h>
88

9+
#pragma warning(disable: 4018) /* signed/unsigned comparison */
10+
#pragma warning(disable: 4244) /* type conversion, possible loss of data */
11+
#pragma warning(disable: 4090) /* 'function' : different 'const' qualifiers (ALLOC_GROW etc.)*/
12+
913
/* porting function */
1014
#define inline __inline
1115
#define __inline__ __inline

0 commit comments

Comments
 (0)