aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-03-21 09:47:29 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-05-02 14:53:06 +0200
commit66f889542f07ba3715d22dc55ffea6005bdc5a9f (patch)
tree056b894d535aec073fd3f7825b339a1075ec7067 /nx-X11/programs/Xserver/hw
parentfc393174cb56e2fae07a94fb777a34b9f73b6776 (diff)
downloadnx-libs-66f889542f07ba3715d22dc55ffea6005bdc5a9f.tar.gz
nx-libs-66f889542f07ba3715d22dc55ffea6005bdc5a9f.tar.bz2
nx-libs-66f889542f07ba3715d22dc55ffea6005bdc5a9f.zip
hw/nxagent/Handlers.c: Don't declare and assign result variable if not used later on.
Amends the following compiler warning: ``` Handlers.c: In function ‘nxagentShadowBlockHandler’: Handlers.c:732:7: warning: variable ‘result’ set but not used [-Wunused-but-set-variable] int result; ^ ```
Diffstat (limited to 'nx-X11/programs/Xserver/hw')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Handlers.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Handlers.c b/nx-X11/programs/Xserver/hw/nxagent/Handlers.c
index 0396a458e..aee983253 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Handlers.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Handlers.c
@@ -729,7 +729,6 @@ void nxagentShadowBlockHandler(void * data, struct timeval **timeout, void * mas
int changed;
int suspended = 0;
- int result;
int width_, height_;
#ifdef BLOCKS
@@ -796,7 +795,7 @@ void nxagentShadowBlockHandler(void * data, struct timeval **timeout, void * mas
nxagentShadowPoll(nxagentShadowPixmapPtr, nxagentShadowGCPtr, nxagentShadowDepth, nxagentShadowWidth,
nxagentShadowHeight, nxagentShadowBuffer, &changed, &suspended);
- result = nxagentShadowSendUpdates(&suspended);
+ nxagentShadowSendUpdates(&suspended);
if (nxagentBlocking == 0)
{