[mutter] window: Stop a gcc warning
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] window: Stop a gcc warning
- Date: Sun, 18 Mar 2012 02:23:51 +0000 (UTC)
commit 335d211204dbb557d7c89ce782ffb548e574f675
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sat Mar 17 06:44:46 2012 -0400
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.
src/core/window.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 89b0390..977fd77 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]