From b0ac9b77ddb27324565e72b661d541249289d319 Mon Sep 17 00:00:00 2001 From: zhuyaliang <15132211195@163.com> Date: Tue, 17 Jan 2023 16:27:17 +0800 Subject: Replace deprecated API and remove compilation warnings --- src/core/keybindings.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/keybindings.c') diff --git a/src/core/keybindings.c b/src/core/keybindings.c index 2f782fa3..25347e75 100644 --- a/src/core/keybindings.c +++ b/src/core/keybindings.c @@ -198,7 +198,7 @@ reload_modmap (MetaDisplay *display) { if (syms[j] != 0) { - const char *str; + const char *str G_GNUC_UNUSED; str = XKeysymToString (syms[j]); meta_topic (META_DEBUG_KEYBINDINGS, @@ -1284,7 +1284,7 @@ meta_display_process_key_event (MetaDisplay *display, KeySym keysym; gboolean keep_grab; gboolean all_keys_grabbed; - const char *str; + const char *str G_GNUC_UNUSED; MetaScreen *screen; XAllowEvents (display->xdisplay, -- cgit v1.2.1