aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-03-18 16:17:30 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-05-02 14:53:06 +0200
commit5ea2457effe433f4fc66a1a17e0a1ab7527462d6 (patch)
tree876d7a43042f238f55df32dc4e63d9fd0712bc4e /nx-X11/programs/Xserver/hw/nxagent
parent08d38484111299e09b9553f14346f61b949cbbec (diff)
downloadnx-libs-5ea2457effe433f4fc66a1a17e0a1ab7527462d6.tar.gz
nx-libs-5ea2457effe433f4fc66a1a17e0a1ab7527462d6.tar.bz2
nx-libs-5ea2457effe433f4fc66a1a17e0a1ab7527462d6.zip
hw/nxagent/Pixmap.c: pBool pointer is only required when compiled in -DTEST mode.
Amends the following compiler warning: ``` Pixmap.c: In function ‘nxagentDisconnectPixmap’: Pixmap.c:755:9: warning: variable ‘pBool’ set but not used [-Wunused-but-set-variable] Bool *pBool; ^ ```
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Pixmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Pixmap.c b/nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
index cd2234492..67c514714 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
@@ -752,11 +752,11 @@ void nxagentDisconnectPixmap(void *p0, XID x1, void *p2)
{
PixmapPtr pPixmap = (PixmapPtr) p0;
+ #ifdef TEST
Bool *pBool;
pBool = (Bool*) p2;
- #ifdef TEST
fprintf(stderr, "nxagentDisconnectPixmap: Called with bool [%d] and pixmap at [%p].\n",
*pBool, (void *) pPixmap);