1
0
Fork 0

window: Stop a gcc warning

"warning: 'match_tile_mode' may be used uninitialized in this function", it
complains. It thinks it's not unused because of other values of
window->tile_mode, but other complex logic ensures that it can't be
META_TILE_MAXIMIZED, so this is a safe commit.
This commit is contained in:
Jasper St. Pierre 2012-03-17 06:44:46 -04:00
parent 7f64d6b92e
commit 335d211204

View file

@ -10764,10 +10764,7 @@ meta_window_compute_tile_match (MetaWindow *window)
!META_WINDOW_TILED_SIDE_BY_SIDE (window))
return;
if (META_WINDOW_TILED_LEFT (window))
match_tile_mode = META_TILE_RIGHT;
else if (META_WINDOW_TILED_RIGHT (window))
match_tile_mode = META_TILE_LEFT;
match_tile_mode = window->tile_mode;
stack = window->screen->stack;