aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/GetPntMap.c
diff options
context:
space:
mode:
authorwalter harms <wharms@bfs.de>2016-06-04 17:19:59 +0200
committerUlrich Sibiller <u.sibiller@science-computing.de>2016-10-20 10:16:35 +0200
commitddc5ed4c9b876e2ae901edebcd59c9d77daeafd3 (patch)
tree88fb2466a094c66d6f476a1def37c14d320ccd78 /nx-X11/lib/X11/GetPntMap.c
parent21405f62ba6fe9e14db9b0e3b75b55e150614b2c (diff)
downloadnx-libs-ddc5ed4c9b876e2ae901edebcd59c9d77daeafd3.tar.gz
nx-libs-ddc5ed4c9b876e2ae901edebcd59c9d77daeafd3.tar.bz2
nx-libs-ddc5ed4c9b876e2ae901edebcd59c9d77daeafd3.zip
Fixes: warning: variable 'req' set but not,used
Fixes: warning: variable 'req' set but not used [-Wunused-but-set-variable] by marking req _X_UNUSED Solution was discussed on xorg-devel ML Peter Hutter, Alan Coopersmith Re: [PATCH libX11 3/5] fix: warning: pointer targets in passing argument 2 of '_XSend' differ in signedness [-Wpointer-sign] Signed-off-by: harms wharms@bfs.de
Diffstat (limited to 'nx-X11/lib/X11/GetPntMap.c')
-rw-r--r--nx-X11/lib/X11/GetPntMap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/lib/X11/GetPntMap.c b/nx-X11/lib/X11/GetPntMap.c
index 29fdf21f0..07625f8a0 100644
--- a/nx-X11/lib/X11/GetPntMap.c
+++ b/nx-X11/lib/X11/GetPntMap.c
@@ -45,7 +45,7 @@ int XGetPointerMapping (
unsigned char mapping[256]; /* known fixed size */
unsigned long nbytes, remainder = 0;
xGetPointerMappingReply rep;
- register xReq *req;
+ _X_UNUSED register xReq *req;
LockDisplay(dpy);
GetEmptyReq(GetPointerMapping, req);