Commit 292d88d0 authored by Mike Gabriel's avatar Mike Gabriel

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]; ^ ```
parent 182569bf
...@@ -106,7 +106,6 @@ ServerBitsFromGlyph(FontPtr pfont, unsigned ch, register CursorMetricPtr cm, uns ...@@ -106,7 +106,6 @@ ServerBitsFromGlyph(FontPtr pfont, unsigned ch, register CursorMetricPtr cm, uns
PixmapPtr ppix; PixmapPtr ppix;
long nby; long nby;
char *pbits; char *pbits;
ChangeGCVal gcval[3];
unsigned char char2b[2]; unsigned char char2b[2];
/* turn glyph index into a protocol-format char2b */ /* turn glyph index into a protocol-format char2b */
...@@ -165,7 +164,6 @@ ServerBitsFromGlyph(FontPtr pfont, unsigned ch, register CursorMetricPtr cm, uns ...@@ -165,7 +164,6 @@ ServerBitsFromGlyph(FontPtr pfont, unsigned ch, register CursorMetricPtr cm, uns
fbPolyFillRect((DrawablePtr)ppix, pGC, 1, &rect); fbPolyFillRect((DrawablePtr)ppix, pGC, 1, &rect);
/* draw the glyph */ /* draw the glyph */
gcval[0].val = 1;
pGC->fgPixel = 1; pGC->fgPixel = 1;
pGC->stateChanges |= GCForeground; pGC->stateChanges |= GCForeground;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment