From 7f5ea979c3c9f240b0b8119cbf2b3067b46e764f Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Wed, 20 Mar 2013 17:01:51 +0000 Subject: [PATCH] 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 --- src/lib/eina/eina_inlist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eina/eina_inlist.h b/src/lib/eina/eina_inlist.h index 6fa5bd4da7..42079e3102 100644 --- a/src/lib/eina/eina_inlist.h +++ b/src/lib/eina/eina_inlist.h @@ -811,7 +811,7 @@ EAPI Eina_Inlist *eina_inlist_sort(Eina_Inlist *head, Eina_Compare_Cb func); * that is part of the list. */ #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 = list2 ? _EINA_INLIST_CONTAINER(it, list2) : NULL, list2 = list2 ? list2->next : NULL)