diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-22 15:06:50 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-06 11:50:46 -0600 |
commit | 39d8fd2161d0a505c5b25add023aad833714b980 (patch) | |
tree | 4df71809eb36dc83243baf6fbbc2fdcc799c8051 /lib9p/srv.c | |
parent | a9c86c0670f7ed763dedc9cc59dd288d5cc1011b (diff) |
Use C23
This gives us:
- [[maybe_unused]] instead of [[gnu::unused]]
- bool/true/false are predefined, so no need for <stdbool.h>
Diffstat (limited to 'lib9p/srv.c')
-rw-r--r-- | lib9p/srv.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib9p/srv.c b/lib9p/srv.c index ddf4834..12124af 100644 --- a/lib9p/srv.c +++ b/lib9p/srv.c @@ -176,7 +176,7 @@ static inline bool srv_check_perm(struct srv_req *ctx, struct lib9p_srv_stat *st return mode & action; } -[[gnu::unused]] +[[maybe_unused]] static struct lib9p_srv_userid *srv_userid_new(struct lib9p_s name #if CONFIG_9P_ENABLE_9P2000_u || CONFIG_9P_ENABLE_9P2000_L , lib9p_nuid_t num @@ -707,10 +707,10 @@ static inline void _srv_respond(struct srv_req *ctx, enum lib9p_msg_type resp_ty /* handle_T* ******************************************************************/ -#define srv_handler_common(ctx, typ, req) \ - assert(ctx); \ - assert(req); \ - struct lib9p_msg_T##typ *_typecheck_req [[gnu::unused]] = req; \ +#define srv_handler_common(ctx, typ, req) \ + assert(ctx); \ + assert(req); \ + struct lib9p_msg_T##typ *_typecheck_req [[maybe_unused]] = req; \ struct lib9p_msg_R##typ resp = { .tag = ctx->tag } static void handle_Tversion(struct srv_req *ctx, |