efl: resolve warnings over misleading code

this is meant to be like this, but clang thought of an intention mistake
here that went unsighted.
This commit is contained in:
Marcel Hollerbach 2020-09-01 13:23:42 +02:00
parent 9673ed6269
commit 13a76dded0
2 changed files with 8 additions and 2 deletions

View 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. */
{

View File

@ -6647,7 +6647,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. */