aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-03-21 22:22:07 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-05-02 15:38:34 +0200
commit7251ef492f72c57713f7e56cf979541bed03d02b (patch)
treefa97a926bb7e6a202e9df2586f654e8c4908357c /nx-X11/programs/Xserver/hw
parent634484bb347ac01740a08e97e17ed28127e8e82e (diff)
downloadnx-libs-7251ef492f72c57713f7e56cf979541bed03d02b.tar.gz
nx-libs-7251ef492f72c57713f7e56cf979541bed03d02b.tar.bz2
nx-libs-7251ef492f72c57713f7e56cf979541bed03d02b.zip
hw/nxagent/Colormap.c: Don't declare and assign flexibility variable if not used later on.
Amends the following compiler warning: ``` Colormap.c: In function ‘nxagentReconnectAllColormap’: Colormap.c:575:7: warning: variable ‘flexibility’ set but not used [-Wunused-but-set-variable] int flexibility; ^ ```
Diffstat (limited to 'nx-X11/programs/Xserver/hw')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Colormap.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Colormap.c b/nx-X11/programs/Xserver/hw/nxagent/Colormap.c
index 3a47e270e..fe3b6ce1d 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Colormap.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Colormap.c
@@ -572,10 +572,8 @@ static void nxagentReconnectColormap(void * p0, XID x1, void * p2)
Bool nxagentReconnectAllColormap(void *p0)
{
- int flexibility;
int cid;
Bool success = True;
- flexibility = *(int*)p0;
#if defined(NXAGENT_RECONNECT_DEBUG) || defined(NXAGENT_RECONNECT_COLORMAP_DEBUG)
fprintf(stderr, "nxagentReconnectAllColormap\n");