diff options
| author | Paul Eggert | 2023-08-07 09:17:56 -0700 |
|---|---|---|
| committer | Paul Eggert | 2023-08-07 09:19:42 -0700 |
| commit | 7cd8236d35c033fefb7be742e6c3290c63eaf609 (patch) | |
| tree | 5989ccab3fb38f6bc46ac55eaf75fc03dcd39269 | |
| parent | a95253f5cc1105619f6f93585dd41288f93384e4 (diff) | |
| download | emacs-7cd8236d35c033fefb7be742e6c3290c63eaf609.tar.gz emacs-7cd8236d35c033fefb7be742e6c3290c63eaf609.zip | |
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.
| -rw-r--r-- | src/lisp.h | 3 |
1 files changed, 2 insertions, 1 deletions
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); | |||
| 5086 | extern int emacs_open_noquit (const char *, int, int); | 5086 | extern int emacs_open_noquit (const char *, int, int); |
| 5087 | extern int emacs_pipe (int[2]); | 5087 | extern int emacs_pipe (int[2]); |
| 5088 | extern int emacs_close (int); | 5088 | extern int emacs_close (int); |
| 5089 | extern FILE *emacs_fdopen (int, const char *); | ||
| 5090 | extern int emacs_fclose (FILE *); | 5089 | extern int emacs_fclose (FILE *); |
| 5090 | extern FILE *emacs_fdopen (int, const char *) | ||
| 5091 | ATTRIBUTE_MALLOC ATTRIBUTE_DEALLOC (emacs_fclose, 1); | ||
| 5091 | extern int emacs_unlink (const char *); | 5092 | extern int emacs_unlink (const char *); |
| 5092 | extern int emacs_symlink (const char *, const char *); | 5093 | extern int emacs_symlink (const char *, const char *); |
| 5093 | extern int emacs_rmdir (const char *); | 5094 | extern int emacs_rmdir (const char *); |