From 7fd642630ee17f7150c1b881631acbe422b3a26b Mon Sep 17 00:00:00 2001 From: nodist Date: Sat, 13 Jun 2026 19:03:37 -0400 Subject: gnu99 --- docs/application/testing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/application/testing.md') 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) { \ -- cgit v1.2.3