--- parser3/src/include/pa_config_includes.h 2013/07/21 22:17:12 1.41 +++ parser3/src/include/pa_config_includes.h 2015/09/28 21:38:24 1.45 @@ -31,13 +31,12 @@ # include #endif -#ifdef STDC_HEADERS +#ifdef HAVE_STDLIB_H # include +#endif + +#ifdef HAVE_STDDEF_H # include -#else -# ifdef HAVE_STDLIB_H -# include -# endif #endif #ifdef HAVE_STRING_H @@ -129,15 +128,15 @@ # include #endif +#ifdef HAVE_SYS_WAIT_H +# include +#endif + #ifdef HAVE_SYS_SOCKET_H # include #endif -#ifdef HAVE_WINSOCK_H -# include -#endif - #ifdef HAVE_NETINET_IN_H # include #endif @@ -193,6 +192,9 @@ inline size_t min(size_t a, size_t b){ r #define THREAD_LOCAL // __thread // multithreading support required only for apache2 module #endif +#pragma clang diagnostic ignored "-Wparentheses" // if(a=b) +#pragma clang diagnostic ignored "-Winline-new-delete" // replacement operator cannot be declared 'inline' + #if _MSC_VER #pragma warning(disable:4355) // using this in calls to parent constructors @@ -213,6 +215,8 @@ inline size_t min(size_t a, size_t b){ r #pragma warning(disable:4996) // memcpy deprecation +#pragma warning(disable:4702) // unreachable code + #endif /// to debug backtrace pointers switch this on: