summaryrefslogtreecommitdiff
path: root/lib9p/9p.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-12-10 02:12:39 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-12-10 02:26:12 -0700
commit22d27936b3d771a36b170b1f4b4ba58badbf3971 (patch)
tree4c1c0790b7b79e54e44dde00cf488d1620614846 /lib9p/9p.c
parent7bc1e8049dbbf572a773d01547eb9b587b112061 (diff)
Get lib9p building on rp2040
Diffstat (limited to 'lib9p/9p.c')
-rw-r--r--lib9p/9p.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib9p/9p.c b/lib9p/9p.c
index 5943b42..a3d81d0 100644
--- a/lib9p/9p.c
+++ b/lib9p/9p.c
@@ -65,8 +65,11 @@ int lib9p_errorf(struct lib9p_ctx *ctx, uint32_t linux_errno, char const *fmt, .
}
const char *lib9p_msg_type_str(struct lib9p_ctx *ctx, enum lib9p_msg_type typ) {
- assert(0 <= typ && typ <= 0xFF);
- return _lib9p_versions[ctx->version].msgs[typ].name;
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wtype-limits"
+ assert(0 <= typ && typ <= 0xFF);
+#pragma GCC diagnostic pop
+ return _lib9p_versions[ctx->version].msgs[typ].name;
}
/* main message functions *****************************************************/