Revert "util: silence out-of-bounds read warning"

(t < &start_test_function_section) is never true so this commit ended up
disabling the unit tests altogether. That may shut up -fanalyze but
is somewhat of a regression in functionality...

This reverts commit 22c94fd916.
This commit is contained in:
Peter Hutterer 2024-11-26 15:30:39 +10:00
parent 0770fec433
commit d593127c18

View file

@ -52,7 +52,7 @@
*/
#define foreach_test(t_) \
for (const struct test_function *t_ = &__start_test_functions_section; \
t_ < &__stop_test_functions_section && t < &__start_test_functions_section; \
t_ < &__stop_test_functions_section; \
t_++)
typedef MunitResult (*munit_test_func_t)(const MunitParameter params[], void *user_data);