forked from enlightenment/efl
Hush clang warnings for EINA_INLIST_FOREACH_SAFE
As cedric said a couple years ago in commit 17c820ae: "This initialisation is not needed, but will reduce llvm warning noise." Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
This commit is contained in:
parent
aef97ce5a5
commit
7f5ea979c3
|
@ -811,7 +811,7 @@ EAPI Eina_Inlist *eina_inlist_sort(Eina_Inlist *head, Eina_Compare_Cb func);
|
||||||
* that is part of the list.
|
* that is part of the list.
|
||||||
*/
|
*/
|
||||||
#define EINA_INLIST_FOREACH_SAFE(list, list2, it) \
|
#define EINA_INLIST_FOREACH_SAFE(list, list2, it) \
|
||||||
for (it = (list ? _EINA_INLIST_CONTAINER(it, list) : NULL), list2 = it ? ((EINA_INLIST_GET(it) ? EINA_INLIST_GET(it)->next : NULL)) : NULL; \
|
for (it = NULL, it = (list ? _EINA_INLIST_CONTAINER(it, list) : NULL), list2 = it ? ((EINA_INLIST_GET(it) ? EINA_INLIST_GET(it)->next : NULL)) : NULL; \
|
||||||
it; \
|
it; \
|
||||||
it = list2 ? _EINA_INLIST_CONTAINER(it, list2) : NULL, list2 = list2 ? list2->next : NULL)
|
it = list2 ? _EINA_INLIST_CONTAINER(it, list2) : NULL, list2 = list2 ? list2->next : NULL)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue