From: Paul Eggert Date: Mon, 7 Aug 2023 16:17:56 +0000 (-0700) Subject: Pacify --enable-gcc-warnings with emacs_fdopen X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7cd8236d35c033fefb7be742e6c3290c63eaf609;p=emacs.git 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. --- diff --git a/src/lisp.h b/src/lisp.h index 447912581d7..85de57b0b2f 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -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 *);