From 8122501fca00fe96165c46260ed8e297eb904373 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 17 Oct 2021 10:51:56 -0700 Subject: [PATCH] Pacify gcc -Wsuggest-attribute=malloc Problem found with gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0 x86-64. * src/sysstdio.h (emacs_fopen): Mark with ATTRIBUTE_MALLOC. --- src/sysstdio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sysstdio.h b/src/sysstdio.h index d4df3d74567..d6ebfb455f5 100644 --- a/src/sysstdio.h +++ b/src/sysstdio.h @@ -26,7 +26,7 @@ along with GNU Emacs. If not, see . */ #include #include "unlocked-io.h" -extern FILE *emacs_fopen (char const *, char const *); +extern FILE *emacs_fopen (char const *, char const *) ATTRIBUTE_MALLOC; extern void errputc (int); extern void errwrite (void const *, ptrdiff_t); extern void close_output_streams (void); -- 2.39.5