From 0615af6f4748e4f7dc6a4f034a9db636742cc3bd Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Thu, 21 Nov 2024 23:51:38 -0700 Subject: Use C23 (C++11) attribute syntax instead of __attribute__ --- cmd/srv9p/static9p.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/srv9p/static9p.c') diff --git a/cmd/srv9p/static9p.c b/cmd/srv9p/static9p.c index 90f3856..b5b18e0 100644 --- a/cmd/srv9p/static9p.c +++ b/cmd/srv9p/static9p.c @@ -9,7 +9,7 @@ #include "static9p.h" -#define UNUSED(name) /* name __attribute__((unused)) */ +#define UNUSED(name) #define p9_str(cstr) ((struct lib9p_s){ .len = strlen(cstr), .utf8 = cstr }) #define p9_nulstr ((struct lib9p_s){ .len = 0, .utf8 = NULL }) -- cgit v1.2.3-2-g168b