efl: resolve warnings over misleading code
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Tue, 1 Sep 2020 11:23:42 +0000 (13:23 +0200)
committerJongmin Lee <jm105.lee@samsung.com>
Tue, 1 Sep 2020 21:23:08 +0000 (06:23 +0900)
this is meant to be like this, but clang thought of an intention mistake
here that went unsighted.

src/lib/eo/eo.c
src/lib/evas/canvas/evas_object_textblock.c

index 574630a..5d9e264 100644 (file)
@@ -1721,7 +1721,9 @@ efl_class_new(const Efl_Class_Description *desc, const Efl_Class *parent_id, ...
    mro = eina_list_remove(mro, NULL);
    mro = eina_list_prepend(mro, klass);
    if ((desc->type == EFL_CLASS_TYPE_MIXIN) && (desc->data_size > 0))
-     mixins = eina_list_prepend(mixins, klass);
+     {
+        mixins = eina_list_prepend(mixins, klass);
+     }
 
    /* Copy the extensions and free the list */
      {
@@ -1751,7 +1753,9 @@ efl_class_new(const Efl_Class_Description *desc, const Efl_Class *parent_id, ...
 
    size_t extn_data_off = klass->data_offset;
    if (klass->desc->type != EFL_CLASS_TYPE_MIXIN)
+     {
       extn_data_off += EO_ALIGN_SIZE(klass->desc->data_size);
+     }
 
    /* Feed the mixins data offsets and free the mixins list. */
      {
index 6134684..f1f4af6 100644 (file)
@@ -6793,7 +6793,9 @@ _layout_par(Ctxt *c)
 
    it = _ITEM(eina_list_data_get(c->par->logical_items));
    if (c->line_no == 0 || c->o->multiline)
-     _layout_line_new(c, it->format);
+     {
+        _layout_line_new(c, it->format);
+     }
    /* We walk on our own because we want to be able to add items from
     * inside the list and then walk them on the next iteration. */