Fix: Compile warnings when asserts are disabled

This commit is contained in:
Charles Pigott
2020-09-25 12:22:48 +01:00
parent ad47ebc1a8
commit cfa1b1e006
3 changed files with 4 additions and 0 deletions

View File

@@ -1386,6 +1386,7 @@ static void AddWindowToZOrdering(Window *w)
/* Search down the z-ordering for its location. */
Window *v = _z_front_window;
uint last_z_priority = UINT_MAX;
(void)last_z_priority; // Unused without asserts
while (v != nullptr && (v->window_class == WC_INVALID || GetWindowZPriority(v->window_class) > GetWindowZPriority(w->window_class))) {
if (v->window_class != WC_INVALID) {
/* Sanity check z-ordering, while we're at it. */