summaryrefslogtreecommitdiff
path: root/src/cc-compat.h
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2010-06-03 22:28:30 +0100
committerRamsay Jones <ramsay@ramsay1.demon.co.uk>2010-06-07 19:46:17 +0100
commitca3939e682a3198a3d18f42b7fbf84823312dc61 (patch)
treed76261e048bdda2e6d2211aa308e675507bb434a /src/cc-compat.h
parent0aaf8708b0f67ed9b99f1c1e2fd28492a671123d (diff)
downloadlibgit2-ca3939e682a3198a3d18f42b7fbf84823312dc61.tar.gz
msvc: Disable a level 4 warning and change -W3 to -W4
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Diffstat (limited to 'src/cc-compat.h')
-rw-r--r--src/cc-compat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cc-compat.h b/src/cc-compat.h
index 5071d5322..cf6cccf12 100644
--- a/src/cc-compat.h
+++ b/src/cc-compat.h
@@ -66,6 +66,8 @@
#if defined(_MSC_VER)
/* disable "deprecated function" warnings */
# pragma warning ( disable : 4996 )
+/* disable "conditional expression is constant" level 4 warnings */
+# pragma warning ( disable : 4127 )
#endif
#endif /* INCLUDE_compat_h__ */