From 7f3d781dab9a7a153badb62fd538908cb6595105 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 27 May 2022 10:50:56 -0700 Subject: [PATCH] Pacify gcc -Wsuggest-attribute-malloc * src/xterm.h (x_get_atom_name): Add ATTRIBUTE_MALLOC. --- src/xterm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.2