fix error with "-Wl,--gc-sections"

master
ppw0 2023-11-26 10:51:18 +01:00 committed by Ran Benita
parent 7caf57f013
commit 0db1dc1c4a
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ struct test_function {
#define X11_TEST(_func) \ #define X11_TEST(_func) \
static int _func(char* display); \ static int _func(char* display); \
static const struct test_function _test_##_func \ static const struct test_function _test_##_func \
__attribute__((used)) \ __attribute__((retain,used)) \
__attribute__((section("test_functions_section"))) = { \ __attribute__((section("test_functions_section"))) = { \
.name = #_func, \ .name = #_func, \
.func = _func, \ .func = _func, \