diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-12-10 02:12:39 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-12-10 02:26:12 -0700 |
commit | 22d27936b3d771a36b170b1f4b4ba58badbf3971 (patch) | |
tree | 4c1c0790b7b79e54e44dde00cf488d1620614846 /lib9p/9p.c | |
parent | 7bc1e8049dbbf572a773d01547eb9b587b112061 (diff) |
Get lib9p building on rp2040
Diffstat (limited to 'lib9p/9p.c')
-rw-r--r-- | lib9p/9p.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 *****************************************************/ |