From: Paul Eggert Date: Sun, 21 Jan 2024 00:52:31 +0000 (-0800) Subject: Pacify gcc -Wsuggest-attribute=malloc X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0d5195cc657164fcab5e0d78e13cd247a89db597;p=emacs.git Pacify gcc -Wsuggest-attribute=malloc * src/lisp.h (hash_table_alloc_bytes): Declare with ATTRIBUTE_MALLOC_SIZE ((1)). (cherry picked from commit 973c1b8a1838b78d1388437c2aa7f4eb4dceb7d9) --- diff --git a/src/lisp.h b/src/lisp.h index 64492361e64..d9448f476e7 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -4475,7 +4475,7 @@ extern void syms_of_alloc (void); extern struct buffer *allocate_buffer (void) ATTRIBUTE_RETURNS_NONNULL; extern int valid_lisp_object_p (Lisp_Object); -void *hash_table_alloc_bytes (ptrdiff_t nbytes); +void *hash_table_alloc_bytes (ptrdiff_t nbytes) ATTRIBUTE_MALLOC_SIZE ((1)); void hash_table_free_bytes (void *p, ptrdiff_t nbytes); /* Defined in gmalloc.c. */