mirror of
https://github.com/git/git.git
synced 2026-01-15 21:29:17 +00:00
msvc: add pragmas for common warnings
MSVC can be overzealous about some warnings. Disable them. Signed-off-by: Philip Oakley <philipoakley@iee.org>
This commit is contained in:
committed by
Johannes Schindelin
parent
29cec311ec
commit
f6114b7b1f
@@ -6,6 +6,10 @@
|
||||
#include <malloc.h>
|
||||
#include <io.h>
|
||||
|
||||
#pragma warning(disable: 4018) /* signed/unsigned comparison */
|
||||
#pragma warning(disable: 4244) /* type conversion, possible loss of data */
|
||||
#pragma warning(disable: 4090) /* 'function' : different 'const' qualifiers (ALLOC_GROW etc.)*/
|
||||
|
||||
/* porting function */
|
||||
#define inline __inline
|
||||
#define __inline__ __inline
|
||||
|
||||
Reference in New Issue
Block a user