summaryrefslogtreecommitdiff
path: root/deps/http-parser
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-09-29 15:24:41 +0200
committerVicent Marti <tanoku@gmail.com>2011-09-29 15:25:22 +0200
commit72bdfdbc7cb868b222127d1592d35a19e47ceb05 (patch)
tree3bbc1b80c7f340196dfb6227570db85f57506f9c /deps/http-parser
parent0812caaea54e47e31f07e989c3052c61084e1ece (diff)
downloadlibgit2-72bdfdbc7cb868b222127d1592d35a19e47ceb05.tar.gz
http-parser: Disable MSVC warnings locally
Diffstat (limited to 'deps/http-parser')
-rw-r--r--deps/http-parser/http_parser.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/http-parser/http_parser.h b/deps/http-parser/http_parser.h
index 69f67eb2b..ac00d4199 100644
--- a/deps/http-parser/http_parser.h
+++ b/deps/http-parser/http_parser.h
@@ -27,6 +27,11 @@ extern "C" {
#define HTTP_PARSER_VERSION_MAJOR 1
#define HTTP_PARSER_VERSION_MINOR 0
+#ifdef _MSC_VER
+ /* disable silly warnings */
+# pragma warning(disable: 4127 4214)
+#endif
+
#include <sys/types.h>
#if defined(_WIN32) && !defined(__MINGW32__) && !defined(_MSC_VER)
typedef __int8 int8_t;