[metacity] place: fix build warnings
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] place: fix build warnings
- Date: Sun, 20 Sep 2015 18:10:49 +0000 (UTC)
commit 6405e891ba739e4c0ac66e91ce5d35740c7c9f90
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Sep 20 06:23:46 2015 +0300
place: fix build warnings
src/core/place.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/core/place.c b/src/core/place.c
index d70cdd4..dc3ad1d 100644
--- a/src/core/place.c
+++ b/src/core/place.c
@@ -320,6 +320,8 @@ find_most_freespace (MetaWindow *window,
else
*new_y = work_area.y + work_area.height - outer.height + frame_size_top;
break;
+ default:
+ break;
}
}
@@ -395,6 +397,9 @@ rectangle_overlaps_some_window (MetaRectangle *rect,
if (meta_rectangle_intersect (rect, &other_rect, &dest))
return TRUE;
break;
+
+ default:
+ break;
}
tmp = tmp->next;
@@ -705,6 +710,10 @@ find_preferred_position (MetaWindow *window,
*new_y += work_area.y;
break;
+ case META_PLACEMENT_MODE_SMART:
+ case META_PLACEMENT_MODE_CASCADE:
+ break;
+
default:
meta_warning ("Unknown window-placement option chosen.\n");
return FALSE;
@@ -763,6 +772,9 @@ meta_window_place (MetaWindow *window,
case META_WINDOW_MENU:
case META_WINDOW_UTILITY:
goto done_no_constraints;
+
+ default:
+ goto done_no_constraints;
}
if (meta_prefs_get_disable_workarounds ())
@@ -802,6 +814,9 @@ meta_window_place (MetaWindow *window,
goto done_no_constraints;
}
break;
+
+ default:
+ break;
}
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]