kernel: include: Fix warning when !CONFIG_SYS_CLOCK_EXISTS
When the kernel is compiled with !CONFIG_SYS_CLOCK_EXISTS we get the warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Fix this avoiding the (void *) cast. Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
parent
129e05c03f
commit
0650d40d83
|
@ -63,7 +63,7 @@ s32_t z_timeout_remaining(struct _timeout *timeout);
|
|||
|
||||
/* Stubs when !CONFIG_SYS_CLOCK_EXISTS */
|
||||
#define z_init_thread_timeout(t) do {} while (false)
|
||||
#define z_add_thread_timeout(th, to) do {} while (false && (void *)to && (void *)th)
|
||||
#define z_add_thread_timeout(th, to) do {} while (false && to && (void *)th)
|
||||
#define z_abort_thread_timeout(t) (0)
|
||||
#define z_is_inactive_timeout(t) 0
|
||||
#define z_get_next_timeout_expiry() (K_FOREVER)
|
||||
|
|
Loading…
Reference in a new issue