mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 00:14:02 +00:00
Once again: Fix build warnings in test_timers.c
This commit is contained in:
parent
bbb2e50327
commit
b4768f1711
@ -25,7 +25,8 @@ timers_teardown(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int fired[3];
|
static int fired[3];
|
||||||
static void dummy_handler(void* arg)
|
static void
|
||||||
|
dummy_handler(void* arg)
|
||||||
{
|
{
|
||||||
int index = LWIP_PTR_NUMERIC_CAST(int, arg);
|
int index = LWIP_PTR_NUMERIC_CAST(int, arg);
|
||||||
fired[index] = 1;
|
fired[index] = 1;
|
||||||
@ -33,7 +34,8 @@ static void dummy_handler(void* arg)
|
|||||||
|
|
||||||
#define HANDLER_EXECUTION_TIME 5
|
#define HANDLER_EXECUTION_TIME 5
|
||||||
static int cyclic_fired;
|
static int cyclic_fired;
|
||||||
static void dummy_cyclic_handler(void)
|
static void
|
||||||
|
dummy_cyclic_handler(void)
|
||||||
{
|
{
|
||||||
cyclic_fired = 1;
|
cyclic_fired = 1;
|
||||||
lwip_sys_now += HANDLER_EXECUTION_TIME;
|
lwip_sys_now += HANDLER_EXECUTION_TIME;
|
||||||
@ -41,7 +43,8 @@ static void dummy_cyclic_handler(void)
|
|||||||
|
|
||||||
struct lwip_cyclic_timer test_cyclic = {10, dummy_cyclic_handler};
|
struct lwip_cyclic_timer test_cyclic = {10, dummy_cyclic_handler};
|
||||||
|
|
||||||
void do_test_cyclic_timers(u32_t offset)
|
static void
|
||||||
|
do_test_cyclic_timers(u32_t offset)
|
||||||
{
|
{
|
||||||
struct sys_timeo** list_head = lwip_sys_timers_get_next_timout();
|
struct sys_timeo** list_head = lwip_sys_timers_get_next_timout();
|
||||||
|
|
||||||
@ -121,7 +124,8 @@ START_TEST(test_bug52748)
|
|||||||
}
|
}
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
void do_test_timers(u32_t offset)
|
static void
|
||||||
|
do_test_timers(u32_t offset)
|
||||||
{
|
{
|
||||||
struct sys_timeo** list_head = lwip_sys_timers_get_next_timout();
|
struct sys_timeo** list_head = lwip_sys_timers_get_next_timout();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user