diff --git a/src/osdp_cp.c b/src/osdp_cp.c index 9dec4d8..cd82f5e 100644 --- a/src/osdp_cp.c +++ b/src/osdp_cp.c @@ -181,6 +181,8 @@ static inline void assert_buf_len(int need, int have) { __ASSERT(need < have, "OOM at build command: need:%d have:%d", need, have); + (void)need; + (void)have; } static int cp_build_command(struct osdp_pd *pd, uint8_t *buf, int max_len) diff --git a/src/osdp_pd.c b/src/osdp_pd.c index 31582dc..fea0070 100644 --- a/src/osdp_pd.c +++ b/src/osdp_pd.c @@ -741,6 +741,8 @@ static inline void assert_buf_len(int need, int have) { __ASSERT(need < have, "OOM at build command: need:%d have:%d", need, have); + (void)need; + (void)have; } /**