From dd8f8ebac1bb3c854b607f43f0e63e105e099dd0 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Mon, 9 Jun 2025 17:44:41 -0600 Subject: libmisc: assert.h: Disable -Wtype-limits inside of assert() --- lib9p/core.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib9p/core.c') diff --git a/lib9p/core.c b/lib9p/core.c index 58fe538..3843429 100644 --- a/lib9p/core.c +++ b/lib9p/core.c @@ -48,17 +48,11 @@ bool lib9p_str_eq(struct lib9p_s a, struct lib9p_s b) { /* bounds checks **************************************************************/ static inline void assert_ver(enum lib9p_version ver) { -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wtype-limits" assert(0 <= ver && ver < LIB9P_VER_NUM); -#pragma GCC diagnostic pop } static inline void assert_typ(enum lib9p_msg_type typ) { -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wtype-limits" assert(0 <= typ && typ < 0xFF); -#pragma GCC diagnostic pop } /* simple lookups *************************************************************/ -- cgit v1.2.3-2-g168b