aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-03-21 11:54:55 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-05-02 14:53:06 +0200
commit292d88d07b98045d678e07f8b6dc092cde18e7db (patch)
tree3f8118bf9f8ed1324d725803489f1f8253bb1360 /nx-X11/programs/Xserver/hw
parent182569bf6f4fdd8f5761d15fa0f184665ee787b5 (diff)
downloadnx-libs-292d88d07b98045d678e07f8b6dc092cde18e7db.tar.gz
nx-libs-292d88d07b98045d678e07f8b6dc092cde18e7db.tar.bz2
nx-libs-292d88d07b98045d678e07f8b6dc092cde18e7db.zip
hw/nxagent/NXglyphcurs.c: Don't declare and set gcval, if not being used later on.
Amends the following compiler warning: ``` NXglyphcurs.c: In function ‘ServerBitsFromGlyph’: NXglyphcurs.c:109:17: warning: variable ‘gcval’ set but not used [-Wunused-but-set-variable] ChangeGCVal gcval[3]; ^ ```
Diffstat (limited to 'nx-X11/programs/Xserver/hw')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/NXglyphcurs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXglyphcurs.c b/nx-X11/programs/Xserver/hw/nxagent/NXglyphcurs.c
index 7a1d813b3..1696ae51f 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/NXglyphcurs.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/NXglyphcurs.c
@@ -106,7 +106,6 @@ ServerBitsFromGlyph(FontPtr pfont, unsigned ch, register CursorMetricPtr cm, uns
PixmapPtr ppix;
long nby;
char *pbits;
- ChangeGCVal gcval[3];
unsigned char char2b[2];
/* turn glyph index into a protocol-format char2b */
@@ -165,7 +164,6 @@ ServerBitsFromGlyph(FontPtr pfont, unsigned ch, register CursorMetricPtr cm, uns
fbPolyFillRect((DrawablePtr)ppix, pGC, 1, &rect);
/* draw the glyph */
- gcval[0].val = 1;
pGC->fgPixel = 1;
pGC->stateChanges |= GCForeground;