Commit 7d3d47f1 authored by Mike Gabriel's avatar Mike Gabriel

hw/nxagent/Window.c: Don't declare "XWindowChanges changes;" and later not use it.

Amends the following compiler warning: ``` Window.c:2179:24: warning: variable ‘changes’ set but not used [-Wunused-but-set-variable] XWindowChanges changes; ^ ```
parent 5ea2457e
...@@ -2176,7 +2176,6 @@ void nxagentWindowExposures(WindowPtr pWin, RegionPtr pRgn, RegionPtr other_expo ...@@ -2176,7 +2176,6 @@ void nxagentWindowExposures(WindowPtr pWin, RegionPtr pRgn, RegionPtr other_expo
if (nxagentExposeQueue.length < EXPOSED_SIZE) if (nxagentExposeQueue.length < EXPOSED_SIZE)
{ {
XWindowChanges changes;
int index; int index;
index = (nxagentExposeQueue.start + nxagentExposeQueue.length) % EXPOSED_SIZE; index = (nxagentExposeQueue.start + nxagentExposeQueue.length) % EXPOSED_SIZE;
...@@ -2212,9 +2211,6 @@ void nxagentWindowExposures(WindowPtr pWin, RegionPtr pRgn, RegionPtr other_expo ...@@ -2212,9 +2211,6 @@ void nxagentWindowExposures(WindowPtr pWin, RegionPtr pRgn, RegionPtr other_expo
nxagentExposeSerial = (nxagentExposeSerial - 1) % EXPOSED_SIZE; nxagentExposeSerial = (nxagentExposeSerial - 1) % EXPOSED_SIZE;
changes.x = nxagentExposeSerial;
changes.y = -2;
nxagentExposeQueue.exposures[index].serial = nxagentExposeSerial; nxagentExposeQueue.exposures[index].serial = nxagentExposeSerial;
#ifdef TEST #ifdef TEST
......
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