diff -r e8f354a25ac8 -r 68754c7de906 src/list.c --- a/src/list.c Thu Nov 07 20:22:56 2024 +0100 +++ b/src/list.c Thu Nov 07 22:46:58 2024 +0100 @@ -212,33 +212,33 @@ // -static void cx_emptyl_noop(__attribute__((__unused__)) CxList *list) { +static void cx_emptyl_noop(cx_attr_unused CxList *list) { // this is a noop, but MUST be implemented } static void *cx_emptyl_at( - __attribute__((__unused__)) const struct cx_list_s *list, - __attribute__((__unused__)) size_t index + cx_attr_unused const struct cx_list_s *list, + cx_attr_unused size_t index ) { return NULL; } static ssize_t cx_emptyl_find_remove( - __attribute__((__unused__)) struct cx_list_s *list, - __attribute__((__unused__)) const void *elem, - __attribute__((__unused__)) bool remove + cx_attr_unused struct cx_list_s *list, + cx_attr_unused const void *elem, + cx_attr_unused bool remove ) { return -1; } -static bool cx_emptyl_iter_valid(__attribute__((__unused__)) const void *iter) { +static bool cx_emptyl_iter_valid(cx_attr_unused const void *iter) { return false; } static CxIterator cx_emptyl_iterator( const struct cx_list_s *list, size_t index, - __attribute__((__unused__)) bool backwards + cx_attr_unused bool backwards ) { CxIterator iter = {0}; iter.src_handle.c = list; @@ -419,10 +419,6 @@ return 0; } -void cxListDestroy(CxList *list) { - list->cl->destructor(list); -} - int cxListCompare( const CxList *list, const CxList *other