[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 8122501: Pacify gcc -Wsuggest-attribute=malloc
From: |
Paul Eggert |
Subject: |
master 8122501: Pacify gcc -Wsuggest-attribute=malloc |
Date: |
Sun, 17 Oct 2021 13:52:34 -0400 (EDT) |
branch: master
commit 8122501fca00fe96165c46260ed8e297eb904373
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>
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 d4df3d7..d6ebfb4 100644
--- a/src/sysstdio.h
+++ b/src/sysstdio.h
@@ -26,7 +26,7 @@ along with GNU Emacs. If not, see
<https://www.gnu.org/licenses/>. */
#include <stdio.h>
#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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 8122501: Pacify gcc -Wsuggest-attribute=malloc,
Paul Eggert <=