Pacify --enable-gcc-warnings with emacs_fdopen

* src/lisp.h (emacs_fdopen): Now ATTRIBUTE_MALLOC
ATTRIBUTE_DEALLOC (emacs_fclose, 1), to pacify gcc
-Wsuggest-attribute=malloc on non-Android platforms.
This commit is contained in:
Paul Eggert 2023-08-07 09:17:56 -07:00
parent a95253f5cc
commit 7cd8236d35

View file

@ -5086,8 +5086,9 @@ extern int emacs_open (const char *, int, int);
extern int emacs_open_noquit (const char *, int, int);
extern int emacs_pipe (int[2]);
extern int emacs_close (int);
extern FILE *emacs_fdopen (int, const char *);
extern int emacs_fclose (FILE *);
extern FILE *emacs_fdopen (int, const char *)
ATTRIBUTE_MALLOC ATTRIBUTE_DEALLOC (emacs_fclose, 1);
extern int emacs_unlink (const char *);
extern int emacs_symlink (const char *, const char *);
extern int emacs_rmdir (const char *);