msvc: add pragmas for common warnings

MSVC can be overzealous about some warnings. Disable them. Signed-off-by: Philip Oakley <philipoakley@iee.org> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Philip Oakley committed Jun 25, 2019 at 07:49 UTC b7bd9a73381df1dcc3c408a8f4379cb6f1db6785
1 file changed +4
compat/msvc.h
+4
@@ -6,6 +6,10 @@
6 #include <malloc.h>
7 #include <io.h>
8
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 +
13 /* porting function */
14 #define inline __inline
15 #define __inline__ __inline