Sfoglia il codice sorgente

Once again: Fix build warnings in test_timers.c

Dirk Ziegelmeier 8 anni fa
parent
commit
b4768f1711
1 ha cambiato i file con 8 aggiunte e 4 eliminazioni
  1. 8 4
      test/unit/core/test_timers.c

+ 8 - 4
test/unit/core/test_timers.c

@@ -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();