diff options
author | zhuyaliang <[email protected]> | 2023-01-17 16:27:17 +0800 |
---|---|---|
committer | zhuyaliang <zhuyaliang@[email protected]> | 2023-01-31 20:28:34 +0800 |
commit | b0ac9b77ddb27324565e72b661d541249289d319 (patch) | |
tree | 67be9b56e84178e6b3d85e5be9acced7adae807a /src/core | |
parent | dcd5d21e4c53f1670b33cec78c96bdd3da87037d (diff) | |
download | marco-b0ac9b77ddb27324565e72b661d541249289d319.tar.bz2 marco-b0ac9b77ddb27324565e72b661d541249289d319.tar.xz |
Replace deprecated API and remove compilation warningsremove-image-menu
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/keybindings.c | 4 | ||||
-rw-r--r-- | src/core/screen.c | 2 |
2 files changed, 3 insertions, 3 deletions
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, diff --git a/src/core/screen.c b/src/core/screen.c index 99932393..316a567a 100644 --- a/src/core/screen.c +++ b/src/core/screen.c @@ -2739,7 +2739,7 @@ meta_screen_sn_event (SnMonitorEvent *event, { case SN_MONITOR_EVENT_INITIATED: { - const char *wmclass; + const char *wmclass G_GNUC_UNUSED; wmclass = sn_startup_sequence_get_wmclass (sequence); |