asdfuser pushed a commit to branch master.
commit 7f5ea979c3c9f240b0b8119cbf2b3067b46e764f
Author: Daniel Willmann <[email protected]>
Date: Wed Mar 20 17:01:51 2013 +0000
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 <[email protected]>
---
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 6fa5bd4..42079e3 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)
--
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar