--- parser3/src/include/pa_config_includes.h 2015/10/12 20:52:03 1.48 +++ parser3/src/include/pa_config_includes.h 2017/11/15 22:48:57 1.54 @@ -1,7 +1,7 @@ /** @file Parser: includes all Configure-d headers - Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2017 Art. Lebedev Studio (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) when used Configure [HAVE_CONFIG_H] it uses defines from Configure, @@ -186,18 +186,25 @@ inline size_t min(size_t a, size_t b){ r #endif +#ifdef __GNUC__ +# define PA_ATTR_UNUSED __attribute__((unused)) +#else +# define PA_ATTR_UNUSED +#endif + #ifdef WIN32 #define THREAD_LOCAL __declspec(thread) #else #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 "-Winline-new-delete" // replacement operator cannot be declared 'inline' +#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