Commit 3bdcd172 authored by Mike Gabriel's avatar Mike Gabriel

hw/nxagent/NX*.c: Amend re-introduced nxagent warnings by fixing the…

hw/nxagent/NX*.c: Amend re-introduced nxagent warnings by fixing the corresponding code section in files included from "somewhere" in nx-X11/programs/Xserver/. (1) In file included from NXrender.c:44:0: ../../mi/../render/render.c: In function ‘swapStops’: ../../mi/../render/render.c:2541:13: warning: variable ‘colors’ set but not used [-Wunused-but-set-variable] CARD16 *colors; ^ (2) In file included from NXevents.c:133:0: ../../dix/events.c: In function ‘ReinitializeRootWindow’: ../../dix/events.c:2046:15: warning: unused variable ‘pScreen’ [-Wunused-variable] ScreenPtr pScreen = win->drawable.pScreen; ^ ../../dix/events.c: In function ‘XineramaPointInWindowIsVisible’: ../../dix/events.c:2177:15: warning: variable ‘pScreen’ set but not used [-Wunused-but-set-variable] ScreenPtr pScreen = pWin->drawable.pScreen; ^ In file included from NXevents.c:133:0: ../../dix/events.c: In function ‘XineramaPointInWindowIsVisible’: ../../dix/events.c:2191:2: error: ‘pScreen’ undeclared (first use in this function) pScreen = pWin->drawable.pScreen; ^ (3) In file included from NXdixfonts.c:77:0: ../../dix/dixfonts.c: In function ‘GetFontPath’: ../../dix/dixfonts.c:1890:2: warning: return makes pointer from integer without a cast return BadAlloc; ^
parent a5c7b248
...@@ -1884,7 +1884,7 @@ GetFontPath(int *count, int *length) ...@@ -1884,7 +1884,7 @@ GetFontPath(int *count, int *length)
if (c == NULL) { if (c == NULL) {
free(font_path_string); free(font_path_string);
font_path_string = NULL; font_path_string = NULL;
return BadAlloc; return NULL;
} }
font_path_string = c; font_path_string = c;
......
...@@ -2538,13 +2538,11 @@ static void swapStops(void *stuff, int num) ...@@ -2538,13 +2538,11 @@ static void swapStops(void *stuff, int num)
{ {
int i, n; int i, n;
CARD32 *stops; CARD32 *stops;
CARD16 *colors;
stops = (CARD32 *)(stuff); stops = (CARD32 *)(stuff);
for (i = 0; i < num; ++i) { for (i = 0; i < num; ++i) {
swapl(stops, n); swapl(stops, n);
++stops; ++stops;
} }
colors = (CARD16 *)(stops);
for (i = 0; i < 4*num; ++i) { for (i = 0; i < 4*num; ++i) {
swaps(stops, n); swaps(stops, n);
++stops; ++stops;
......
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