diff -r e8f354a25ac8 -r 68754c7de906 tests/test_list.c --- a/tests/test_list.c Thu Nov 07 20:22:56 2024 +0100 +++ b/tests/test_list.c Thu Nov 07 22:46:58 2024 +0100 @@ -1165,7 +1165,7 @@ } #define roll_out_test_combos(name, body) \ static CX_TEST_SUBROUTINE(test_list_verify_##name, CxList *list, \ - __attribute__((__unused__)) bool isptrlist) body \ + cx_attr_unused bool isptrlist) body \ roll_out_test_invokers(name) static void set_default_class_funcs(CxList *list, cx_list_class *defaulted_cl) { @@ -1188,7 +1188,7 @@ set_default_class_funcs(list, &defaulted_cl) #define roll_out_test_combos_with_defaulted_funcs(name, body) \ static CX_TEST_SUBROUTINE(test_list_verify_##name, CxList *list, \ - __attribute__((__unused__)) bool isptrlist) body \ + cx_attr_unused bool isptrlist) body \ roll_out_test_invokers(name) \ CX_TEST(test_list_llm_##name) { \ set_up_combo \ @@ -1387,7 +1387,7 @@ }) static unsigned test_remove_array_destr_ctr; -static void test_remove_array_destr(__attribute__((__unused__)) void *d) { +static void test_remove_array_destr(cx_attr_unused void *d) { test_remove_array_destr_ctr++; } @@ -1767,7 +1767,7 @@ destr_test_ctr++; } -static void advanced_destr_test_fun(__attribute__((__unused__)) void *u, void *data) { +static void advanced_destr_test_fun(cx_attr_unused void *u, void *data) { simple_destr_test_fun(data); }