diff options
Diffstat (limited to 'docs/application/testing.md')
| -rw-r--r-- | docs/application/testing.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/application/testing.md b/docs/application/testing.md index 5d7b277..6e85c6f 100644 --- a/docs/application/testing.md +++ b/docs/application/testing.md @@ -24,11 +24,11 @@ typedef struct { // TODO STORE ERRORS FOR PRINT AT END -#define _TEST_FN(NAME) static void kpl_test_fn_##NAME([[gnu::constructor]] kpl_test *_test) +#define _TEST_FN(NAME) static void kpl_test_fn_##NAME(__attribute__(unused)) kpl_test *_test) #define TEST(NAME) \ _TEST_FN(NAME); \ - [[gnu::constructor]] static void _kpl_test_constructor_##NAME(void) { \ + static void __attribute__((constructor)) _kpl_test_constructor_##NAME(void) { \ kpl_test _test = { .name = #NAME; .error = nullptr }; \ kpl_test_fn_##NAME(&test); \ if (_test.error) { \ |
