[gtk+] x11: Mark unused variables as such
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] x11: Mark unused variables as such
- Date: Thu, 1 Mar 2012 04:32:51 +0000 (UTC)
commit 6861bb8efc5dce4824b02bb077637fc8c12dbe54
Author: Benjamin Otte <otte redhat com>
Date: Thu Mar 1 05:16:04 2012 +0100
x11: Mark unused variables as such
We cannot get rid of the variables because they are assigned in a macro
inside Xlib. And this causes a warning in the xlib from Fedora 17
onwards.
gdk/x11/gdkasync.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/x11/gdkasync.c b/gdk/x11/gdkasync.c
index 04f78a9..328be08 100644
--- a/gdk/x11/gdkasync.c
+++ b/gdk/x11/gdkasync.c
@@ -276,7 +276,7 @@ _gdk_x11_send_client_message_async (GdkDisplay *display,
* XSync (dpy, 0)
*/
{
- xReq *req;
+ G_GNUC_UNUSED xReq *req;
GetEmptyReq(GetInputFocus, req);
state->get_input_focus_req = dpy->request;
@@ -739,7 +739,7 @@ _gdk_x11_roundtrip_async (GdkDisplay *display,
* XSync (dpy, 0)
*/
{
- xReq *req;
+ G_GNUC_UNUSED xReq *req;
GetEmptyReq(GetInputFocus, req);
state->get_input_focus_req = dpy->request;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]