From: Paul Eggert Date: Fri, 27 May 2022 17:50:56 +0000 (-0700) Subject: Pacify gcc -Wsuggest-attribute-malloc X-Git-Tag: emacs-29.0.90~1910^2~388 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7f3d781dab9a7a153badb62fd538908cb6595105;p=emacs.git Pacify gcc -Wsuggest-attribute-malloc * src/xterm.h (x_get_atom_name): Add ATTRIBUTE_MALLOC. --- diff --git a/src/xterm.h b/src/xterm.h index fbb381d066e..329fa4c84f6 100644 --- a/src/xterm.h +++ b/src/xterm.h @@ -1541,7 +1541,8 @@ extern void x_set_pending_dnd_time (Time); extern void x_own_selection (Lisp_Object, Lisp_Object, Lisp_Object); extern Atom x_intern_cached_atom (struct x_display_info *, const char *, bool); -extern char *x_get_atom_name (struct x_display_info *, Atom, bool *); +extern char *x_get_atom_name (struct x_display_info *, Atom, bool *) + ATTRIBUTE_MALLOC; #ifdef USE_GTK extern bool xg_set_icon (struct frame *, Lisp_Object);