aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-03-21 16:31:49 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-05-02 15:38:34 +0200
commit30cd3a6c24b2097c30fa2f81c9908aff174e0980 (patch)
tree776994b0b0593ea97dc2b1798a148e1024a0506b /nx-X11/programs/Xserver/hw/nxagent
parentab196f3a14da044f37621186f84b40957d6c2efb (diff)
downloadnx-libs-30cd3a6c24b2097c30fa2f81c9908aff174e0980.tar.gz
nx-libs-30cd3a6c24b2097c30fa2f81c9908aff174e0980.tar.bz2
nx-libs-30cd3a6c24b2097c30fa2f81c9908aff174e0980.zip
hw/nxagent/Display.c: Don't declare and assign packMethod / packQuality if not used later on.
Amends the following compiler warnings: ``` Display.c: In function ‘nxagentReconnectDisplay’: Display.c:2449:19: warning: variable ‘packQuality’ set but not used [-Wunused-but-set-variable] int packMethod, packQuality; ^ Display.c:2449:7: warning: variable ‘packMethod’ set but not used [-Wunused-but-set-variable] int packMethod, packQuality; ^ ```
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Display.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Display.c b/nx-X11/programs/Xserver/hw/nxagent/Display.c
index abc6a9380..5586e82cd 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Display.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Display.c
@@ -2446,7 +2446,6 @@ Bool nxagentReconnectDisplay(void *p0)
{
int i;
int flexibility = *(int*)p0;
- int packMethod, packQuality;
#if defined(NXAGENT_RECONNECT_DEBUG) || defined(NXAGENT_RECONNECT_DISPLAY_DEBUG)
fprintf(stderr, "nxagentReconnectDisplay\n");
@@ -2464,9 +2463,6 @@ Bool nxagentReconnectDisplay(void *p0)
* Reset the values to their defaults.
*/
- packMethod = nxagentPackMethod;
- packQuality = nxagentPackQuality;
-
nxagentPackMethod = -1;
nxagentPackQuality = -1;
nxagentSplitThreshold = -1;