igmp/mld6: Fix build warnings when !ESP_LWIP_IGMP/MLD6_TIMERS_ONDEMAND

Fix below build warnings:
warning: 'igmp_timeout_cb' defined but not used [-Wunused-function]
warning: 'mld6_timeout_cb' defined but not used [-Wunused-function]

Signed-off-by: Axel Lin <axel.lin@gmail.com>
This commit is contained in:
Axel Lin
2020-04-22 10:39:46 +08:00
committed by David Čermák
parent 80d6d19a92
commit b1eec77be7
2 changed files with 4 additions and 0 deletions

View File

@ -639,6 +639,7 @@ igmp_leavegroup_netif(struct netif *netif, const ip4_addr_t *groupaddr)
}
}
#if ESP_LWIP_IGMP_TIMERS_ONDEMAND
/**
* Wrapper function with matching prototype which calls the actual callback
*/
@ -648,6 +649,7 @@ static void igmp_timeout_cb(void *arg)
igmp_tmr();
}
#endif
/**
* The igmp timer function (both for NO_SYS=1 and =0)
* Should be called every IGMP_TMR_INTERVAL milliseconds (100 ms is default).

View File

@ -490,6 +490,7 @@ mld6_leavegroup_netif(struct netif *netif, const ip6_addr_t *groupaddr)
return ERR_VAL;
}
#if ESP_LWIP_MLD6_TIMERS_ONDEMAND
/**
* Wrapper function with matching prototype which calls the actual callback
*/
@ -499,6 +500,7 @@ static void mld6_timeout_cb(void *arg)
mld6_tmr();
}
#endif
/**
* Periodic timer for mld processing. Must be called every