diff -r 1a07e24801a9 -r b182a8b8a1af src/cx/iterator.h --- a/src/cx/iterator.h Sat Jan 22 19:04:32 2022 +0100 +++ b/src/cx/iterator.h Sat Jan 22 19:10:04 2022 +0100 @@ -138,6 +138,6 @@ * @param iter the iterator */ #define cx_foreach(type, elem, iter) \ -for (type *elem; cxIteratorValid(&iter) && (elem = cxIteratorCurrent(&iter)) != NULL ; cxIteratorNext(&iter)) // NOLINT(bugprone-macro-parentheses) +for (type elem; cxIteratorValid(&iter) && (elem = cxIteratorCurrent(&iter)) != NULL ; cxIteratorNext(&iter)) // NOLINT(bugprone-macro-parentheses) #endif /* UCX_ITERATOR_H */