Fixed unit test compiler warnings

This commit is contained in:
Steve Karg
2024-08-06 16:19:08 -05:00
parent 1be0aa39b9
commit be65abe159
35 changed files with 143 additions and 231 deletions
+2
View File
@@ -116,6 +116,8 @@ static inline void test_time_ms(void)
uint32_t spend_cycle = k_cycle_get_32() - tc_start_time;
tc_spend_time = k_cyc_to_ms_ceil32(spend_cycle);
#else
tc_spend_time = 0;
#endif
}
+1
View File
@@ -100,6 +100,7 @@ static inline bool z_zassert(bool cond,
bool _ret = z_zassert(cond, msg ? ("(" default_msg ")") : (default_msg), \
__FILE__, __LINE__, __func__, \
msg ? msg : "", ##__VA_ARGS__); \
(void)_ret; \
} while (0)
/**