From: Paul Eggert Date: Sun, 21 Jan 2024 00:52:31 +0000 (-0800) Subject: Pacify gcc -Wsuggest-attribute=malloc X-Git-Tag: archive/raspbian/1%30.1+1-3+rpi1^2~2^2~20^2~2885 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=973c1b8a1838b78d1388437c2aa7f4eb4dceb7d9;p=emacs.git Pacify gcc -Wsuggest-attribute=malloc * src/lisp.h (hash_table_alloc_bytes): Declare with ATTRIBUTE_MALLOC_SIZE ((1)). --- 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. */