Index: list_common.h =================================================================== --- list_common.h (revision 29668) +++ list_common.h (revision 29669) @@ -30,7 +30,7 @@ /* iterate over all items of list and call func(item) */ #define list_map0(list, itemtype, func) \ do { \ - void (*__f__)(void *) = (func); \ + void (*__f__)(void *) = (void (*)(void *))(func); \ itemtype *__item__; \ gdl_iterator_t it; \ linelist_foreach((list), &it, __item__) \