summaryrefslogtreecommitdiff
path: root/lib9p/tests
diff options
context:
space:
mode:
Diffstat (limited to 'lib9p/tests')
-rw-r--r--lib9p/tests/test_compile.c2
-rwxr-xr-xlib9p/tests/test_compile.c.gen2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib9p/tests/test_compile.c b/lib9p/tests/test_compile.c
index e53b738..e814bf9 100644
--- a/lib9p/tests/test_compile.c
+++ b/lib9p/tests/test_compile.c
@@ -2,7 +2,7 @@
#include <lib9p/core.h>
int main(void) {
- [[gnu::unused]] uint64_t x;
+ [[maybe_unused]] uint64_t x;
#ifdef LIB9P_B4_FALSE
x = LIB9P_B4_FALSE;
#endif
diff --git a/lib9p/tests/test_compile.c.gen b/lib9p/tests/test_compile.c.gen
index eb89c54..c57ce9f 100755
--- a/lib9p/tests/test_compile.c.gen
+++ b/lib9p/tests/test_compile.c.gen
@@ -12,7 +12,7 @@ outfile=$2
echo
echo "#include <lib9p/core.h>"
echo 'int main(void) {'
- echo ' [[gnu::unused]] uint64_t x;'
+ echo ' [[maybe_unused]] uint64_t x;'
<"$generated_h" sed -nE 's/^\s*#\s*define\s*(\S[^ (]*)\s.*/\1/p' | LC_COLLATE=C sort -u | sed 's/.*/#ifdef &\n x = &;\n#endif/'
echo ' return 0;'
echo '}'