summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-01-09 19:03:43 +0100
committerPablo Barciela <[email protected]>2018-01-09 19:05:42 +0100
commit168b8ed3089742840d07bcf81a270498de568ceb (patch)
treefcb3a18504be471c410f4853acc5fa2caf59734d /plugins
parentc95fc236ddfe9203646f8229c85cecdec2825e0a (diff)
downloadmate-settings-daemon-168b8ed3089742840d07bcf81a270498de568ceb.tar.bz2
mate-settings-daemon-168b8ed3089742840d07bcf81a270498de568ceb.tar.xz
plugins: G_GNUC_UNUSED in unused but needed variables
Fixes build warnings
Diffstat (limited to 'plugins')
-rw-r--r--plugins/a11y-keyboard/msd-a11y-keyboard-manager.c4
-rw-r--r--plugins/mouse/msd-mouse-manager.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c b/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c
index 200c4b6..b2ce413 100644
--- a/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c
+++ b/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c
@@ -97,7 +97,7 @@ devicepresence_filter (GdkXEvent *xevent,
gpointer data)
{
XEvent *xev = (XEvent *) xevent;
- XEventClass class_presence;
+ G_GNUC_UNUSED XEventClass class_presence;
int xi_presence;
DevicePresence (gdk_x11_get_default_xdisplay (), xi_presence, class_presence);
@@ -129,7 +129,7 @@ set_devicepresence_handler (MsdA11yKeyboardManager *manager)
{
Display *display;
XEventClass class_presence;
- int xi_presence;
+ G_GNUC_UNUSED int xi_presence;
if (!supports_xinput_devices ())
return;
diff --git a/plugins/mouse/msd-mouse-manager.c b/plugins/mouse/msd-mouse-manager.c
index 101dd47..cf6a87b 100644
--- a/plugins/mouse/msd-mouse-manager.c
+++ b/plugins/mouse/msd-mouse-manager.c
@@ -475,7 +475,7 @@ devicepresence_filter (GdkXEvent *xevent,
gpointer data)
{
XEvent *xev = (XEvent *) xevent;
- XEventClass class_presence;
+ G_GNUC_UNUSED XEventClass class_presence;
int xi_presence;
DevicePresence (gdk_x11_get_default_xdisplay (), xi_presence, class_presence);
@@ -495,7 +495,7 @@ set_devicepresence_handler (MsdMouseManager *manager)
{
Display *display;
XEventClass class_presence;
- int xi_presence;
+ G_GNUC_UNUSED int xi_presence;
display = gdk_x11_get_default_xdisplay ();