Skip to content

Commit

Permalink
fix error with "-Wl,--gc-sections"
Browse files Browse the repository at this point in the history
  • Loading branch information
ppw0 authored Nov 26, 2023
1 parent 7caf57f commit 91a2998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/xvfb-wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct test_function {
#define X11_TEST(_func) \
static int _func(char* display); \
static const struct test_function _test_##_func \
__attribute__((used)) \
__attribute__((retain,used)) \
__attribute__((section("test_functions_section"))) = { \
.name = #_func, \
.func = _func, \
Expand Down

0 comments on commit 91a2998

Please sign in to comment.