Commit 72bdfdbc by Vicent Marti

http-parser: Disable MSVC warnings locally

parent 0812caae
......@@ -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;
......
......@@ -9,16 +9,6 @@
#if defined(_MSC_VER)
/*
* Disable silly MSVC warnings
*/
/* conditional expression is constant */
#pragma warning(disable: 4127)
/* nonstandard extension used : bit field types other than int */
#pragma warning(disable: 4214)
/* access() mode parameter #defines */
# define F_OK 0 /* existence check */
# define W_OK 2 /* write mode check */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment