cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1e0c2e1a02014ef2f27545fa722402c409e83488

commit 1e0c2e1a02014ef2f27545fa722402c409e83488
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Mon Jun 5 12:02:30 2017 -0700

    elementary: reuse code by relying on switch case statement fallthrough.
---
 src/lib/elementary/elm_gesture_layer.c | 2 ++
 src/lib/elementary/elm_prefs_data.c    | 1 +
 2 files changed, 3 insertions(+)

diff --git a/src/lib/elementary/elm_gesture_layer.c 
b/src/lib/elementary/elm_gesture_layer.c
index ff01a65003..2dc5190410 100644
--- a/src/lib/elementary/elm_gesture_layer.c
+++ b/src/lib/elementary/elm_gesture_layer.c
@@ -3355,6 +3355,7 @@ _zoom_test(Evas_Object *obj,
         if ((!sd->glayer_continues_enable) &&
             (!st->zoom_st.timestamp))
           return;
+        EINA_FALLTHROUGH;
         // fallthrough is intentional
       case EVAS_CALLBACK_MOUSE_DOWN:
       case EVAS_CALLBACK_MULTI_DOWN:
@@ -3600,6 +3601,7 @@ _rotate_test(Evas_Object *obj,
         if ((!sd->glayer_continues_enable) &&
             (!st->rotate_st.timestamp))
           return;
+        EINA_FALLTHROUGH;
         // fallthrough is intentional
       case EVAS_CALLBACK_MOUSE_DOWN:
       case EVAS_CALLBACK_MULTI_DOWN:
diff --git a/src/lib/elementary/elm_prefs_data.c 
b/src/lib/elementary/elm_prefs_data.c
index 749c044a8c..fa9e1534f6 100644
--- a/src/lib/elementary/elm_prefs_data.c
+++ b/src/lib/elementary/elm_prefs_data.c
@@ -285,6 +285,7 @@ _eet_data_load(Elm_Prefs_Data *prefs_data,
 
            case ELM_PREFS_TYPE_PAGE:
              _eet_data_load(prefs_data, eet_file, it->value.s.s);
+             EINA_FALLTHROUGH;
 
            case ELM_PREFS_TYPE_TEXTAREA:
            case ELM_PREFS_TYPE_TEXT: /* using text type for all

-- 


Reply via email to