--- parser3/src/include/pa_config_includes.h 2017/02/07 22:00:33 1.51 +++ parser3/src/include/pa_config_includes.h 2017/11/15 22:48:57 1.54 @@ -186,7 +186,7 @@ inline size_t min(size_t a, size_t b){ r #endif -#if defined(__GNUC__) +#ifdef __GNUC__ # define PA_ATTR_UNUSED __attribute__((unused)) #else # define PA_ATTR_UNUSED @@ -198,11 +198,13 @@ inline size_t min(size_t a, size_t b){ r #define THREAD_LOCAL // __thread // multithreading support required only for apache2 module #endif -#if __clang__ +#ifdef __clang__ #pragma clang diagnostic ignored "-Wparentheses" // if(a=b) +#pragma clang diagnostic ignored "-Wpointer-sign" // CORD (unsigned char *) to char * in libcord +#pragma clang diagnostic ignored "-Winline-new-delete" // test for regular new/delete usage in memory.h #endif -#if _MSC_VER +#ifdef _MSC_VER #pragma warning(disable:4355) // using this in calls to parent constructors #pragma warning(disable:4291) // no matching operator delete found; memory will not be freed if initialization throws an exception #pragma warning(disable:4512) // assignment operator could not be generated