(Cherry-pick commit
012fc6c8 from 'release-7_6' branch.)
* tests/huge_test.c [!GC_ATTR_ALLOC_SIZE] (GC_ATTR_ALLOC_SIZE): Define
to empty (before include gc.h).
# define GC_IGNORE_WARN
#endif
+#ifndef GC_ATTR_ALLOC_SIZE
+ /* Omit alloc_size attribute to avoid compiler warnings about */
+ /* exceeding maximum object size when values close to GC_SWORD_MAX */
+ /* are passed to GC_MALLOC. */
+# define GC_ATTR_ALLOC_SIZE(argnum) /* empty */
+#endif
+
#include "gc.h"
/*