fc1c3661b9fb623c6d87e635a4825ebc24947b26 hiram Thu Jan 2 18:26:27 2025 -0800 the new compiler needs the pragma, mistake to comment it out refs #34990 diff --git src/inc/common.h src/inc/common.h index 7de3761..cb0d4ed 100644 --- src/inc/common.h +++ src/inc/common.h @@ -164,31 +164,31 @@ #endif /* Cast a pointer to a long long. Use to printf format points as long-longs * in a 32/64bit portable manner. Format should use %llx for the result. * Needed because casting a pointer to a different sized number cause a * warning with gcc */ #define ptrToLL(p) ((long long)((size_t)p)) /* older compiler on hgwdev can use this macro without checking */ #if defined(__STDC__) && (__STDC__ == 1) && (__STDC_ISO_10646__ == 201103L) #define ArraySize(a) (sizeof(a)/sizeof((a)[0])) #else // for newer compilers, use this format to avoid the error exit on warning // TODO GALT This is a temporary work around. -// #pragma GCC diagnostic ignored "-Wsizeof-pointer-div" +#pragma GCC diagnostic ignored "-Wsizeof-pointer-div" /* How big is this array? */ #define ArraySize(a) (sizeof(a)/sizeof((a)[0])) #endif #define uglyf printf /* debugging printf */ #define uglyAbort errAbort /* debugging error abort. */ #define uglyOut stdout /* debugging fprintf target. */ size_t memCheckPoint(); /* Return the amount of memory allocated since last called. */ void *needMem(size_t size); /* Need mem calls abort if the memory allocation fails. The memory * is initialized to zero. */