--- parser3/src/include/pa_config_includes.h 2025/08/01 16:14:44 1.78 +++ parser3/src/include/pa_config_includes.h 2026/09/20 00:22:19 1.82 @@ -1,7 +1,7 @@ /** @file Parser: includes all Configure-d headers - Copyright (c) 2001-2024 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com) Authors: Konstantin Morshnev , Alexandr Petrosian when used Configure [HAVE_CONFIG_H] it uses defines from Configure, @@ -239,6 +239,7 @@ inline size_t min(size_t a, size_t b){ r #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 +#pragma clang diagnostic ignored "-Winvalid-offsetof" // intentional container_of-style offsetof(Pair,next) in OrderedHash reverse iterator #elif defined(__GNUC__) && (__GNUC__ >= 7) #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" // case without break @@ -246,6 +247,10 @@ inline size_t min(size_t a, size_t b){ r #endif #ifdef _MSC_VER + +// must be the very first Windows include: to prevent windows.h auto-include the legacy winsock.h +#include + // VS 2003 #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 @@ -257,6 +262,9 @@ inline size_t min(size_t a, size_t b){ r #pragma warning(disable:4511) // copy constructor could not be generated (vs2003 specific) // VS 2015 #pragma warning(disable:4267) // conversion from 'size_t' to 'int', possible loss of data +#pragma warning(disable:4456) // local declaration hides another local +#pragma warning(disable:4458) // declaration hides class member +#pragma warning(disable:4459) // declaration hides global #endif #endif