diff options
author | Philip Oakley <philipoakley@iee.org> | 2019-06-25 07:49:40 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-06-25 10:46:57 -0700 |
commit | b7bd9a73381df1dcc3c408a8f4379cb6f1db6785 (patch) | |
tree | 3f18ded8c59fa73f3a9047617e069c3d4d18f018 /compat/msvc.h | |
parent | msvc: add a compile-time flag to allow detailed heap debugging (diff) | |
download | tgif-b7bd9a73381df1dcc3c408a8f4379cb6f1db6785.tar.xz |
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>
Diffstat (limited to 'compat/msvc.h')
-rw-r--r-- | compat/msvc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compat/msvc.h b/compat/msvc.h index d7525cf61d..1d7a8c6145 100644 --- a/compat/msvc.h +++ b/compat/msvc.h @@ -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 |