summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-05-29 15:13:32 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-29 15:13:32 +0200
commitf68e93be8daa60392d5c733bc6384b10e2b70c41 (patch)
tree2d04fa6a905ee8454d7d5043b25687f14cb389e0
parent56ab05660e62b732434c82b4595d507adac5f823 (diff)
Efl.Ui.Flip: Silence warning
The Efl.Ui.Orientation enum is actually made of flags, which we can OR together, and it includes bitmasks for easier manipulation. gcc expects switch() statemenets to include all enum values and nothing but the valid enum values, which is abit too restrictive for flags. Casting to int removes the warning.
-rw-r--r--src/lib/elementary/efl_ui_flip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_flip.c b/src/lib/elementary/efl_ui_flip.c
index f41cdeea75..23ce004d32 100644
--- a/src/lib/elementary/efl_ui_flip.c
+++ b/src/lib/elementary/efl_ui_flip.c
@@ -2044,7 +2044,7 @@ _flip_dir_to_efl_ui_dir(Elm_Flip_Direction dir)
2044static Elm_Flip_Direction 2044static Elm_Flip_Direction
2045_efl_ui_dir_to_flip_dir(Efl_Ui_Layout_Orientation dir) 2045_efl_ui_dir_to_flip_dir(Efl_Ui_Layout_Orientation dir)
2046{ 2046{
2047 switch (dir) 2047 switch ((int)dir) // The cast silences warnings about missing enum values and non-existing case labels
2048 { 2048 {
2049 case EFL_UI_LAYOUT_ORIENTATION_HORIZONTAL: 2049 case EFL_UI_LAYOUT_ORIENTATION_HORIZONTAL:
2050 return ELM_FLIP_DIRECTION_RIGHT; 2050 return ELM_FLIP_DIRECTION_RIGHT;