summaryrefslogtreecommitdiff
path: root/lib9p/srv.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-05-12 14:26:21 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-05-12 14:26:21 -0600
commit811d9700e1414dae3357361b3ca565f673f63b08 (patch)
treece628075a2ae59d5362d2662465c918f57e81607 /lib9p/srv.c
parentcd5e55ebb7d5a51c0a8bd62137ab75a0f6ff1356 (diff)
parentb4a081932338f65aa87aeba5008463feb0a78519 (diff)
Merge branch 'lukeshu/misc'HEADmain
Diffstat (limited to 'lib9p/srv.c')
-rw-r--r--lib9p/srv.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib9p/srv.c b/lib9p/srv.c
index 12124af..1a6bbb1 100644
--- a/lib9p/srv.c
+++ b/lib9p/srv.c
@@ -632,9 +632,7 @@ void lib9p_srv_worker(struct srv_req *ctx) {
/* Handle it. ********************************************************/
tmessage_handler handler;
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wswitch-enum"
- switch (typ) {
+ LM_PARTIAL_SWITCH (typ) {
case LIB9P_TYP_Tversion: handler = (tmessage_handler)handle_Tversion; break;
#if _LIB9P_ENABLE_stat
case LIB9P_TYP_Tauth: handler = (tmessage_handler)handle_Tauth; break;
@@ -661,7 +659,6 @@ void lib9p_srv_worker(struct srv_req *ctx) {
default:
assert_notreached("lib9p_Tmsg_validate() should have rejected unknown typ");
}
-#pragma GCC diagnostic pop
handler(ctx, (void *)host_req);
assert(ctx->responded);