From e945f1e4e7708b7a376d4a29868b5cf2d0b51854 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Fri, 4 Mar 2022 12:15:27 +0200 Subject: [PATCH] tests: preserve ivi runner section Everywhere else where use this trick, we also have 'used' in the attributes, except here. Make this consistent. Fixes: https://gitlab.freedesktop.org/wayland/weston/-/issues/517 Signed-off-by: Pekka Paalanen (cherry picked from commit 5ba7ae2937286e53cb5a1e3fde39a3f347a32209) --- tests/ivi-layout-test-plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ivi-layout-test-plugin.c b/tests/ivi-layout-test-plugin.c index 75ce1436..8b8bdc8d 100644 --- a/tests/ivi-layout-test-plugin.c +++ b/tests/ivi-layout-test-plugin.c @@ -53,7 +53,7 @@ struct runner_test { static void runner_func_##name(struct test_context *); \ \ const struct runner_test runner_test_##name \ - __attribute__ ((section ("plugin_test_section"))) = \ + __attribute__ ((used, section ("plugin_test_section"))) = \ { \ #name, runner_func_##name \ }; \