Fixed unit test compiler warnings
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user