forked from enlightenment/efl
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:
parent
9673ed6269
commit
13a76dded0
|
@ -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_remove(mro, NULL);
|
||||||
mro = eina_list_prepend(mro, klass);
|
mro = eina_list_prepend(mro, klass);
|
||||||
if ((desc->type == EFL_CLASS_TYPE_MIXIN) && (desc->data_size > 0))
|
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 */
|
/* 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;
|
size_t extn_data_off = klass->data_offset;
|
||||||
if (klass->desc->type != EFL_CLASS_TYPE_MIXIN)
|
if (klass->desc->type != EFL_CLASS_TYPE_MIXIN)
|
||||||
|
{
|
||||||
extn_data_off += EO_ALIGN_SIZE(klass->desc->data_size);
|
extn_data_off += EO_ALIGN_SIZE(klass->desc->data_size);
|
||||||
|
}
|
||||||
|
|
||||||
/* Feed the mixins data offsets and free the mixins list. */
|
/* Feed the mixins data offsets and free the mixins list. */
|
||||||
{
|
{
|
||||||
|
|
|
@ -6647,7 +6647,9 @@ _layout_par(Ctxt *c)
|
||||||
|
|
||||||
it = _ITEM(eina_list_data_get(c->par->logical_items));
|
it = _ITEM(eina_list_data_get(c->par->logical_items));
|
||||||
if (c->line_no == 0 || c->o->multiline)
|
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
|
/* 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. */
|
* inside the list and then walk them on the next iteration. */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue