mirror of
https://github.com/espressif/esp-lwip.git
synced 2025-08-06 18:23:42 +08:00
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:
@ -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
|
* Wrapper function with matching prototype which calls the actual callback
|
||||||
*/
|
*/
|
||||||
@ -648,6 +649,7 @@ static void igmp_timeout_cb(void *arg)
|
|||||||
|
|
||||||
igmp_tmr();
|
igmp_tmr();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
/**
|
/**
|
||||||
* The igmp timer function (both for NO_SYS=1 and =0)
|
* The igmp timer function (both for NO_SYS=1 and =0)
|
||||||
* Should be called every IGMP_TMR_INTERVAL milliseconds (100 ms is default).
|
* Should be called every IGMP_TMR_INTERVAL milliseconds (100 ms is default).
|
||||||
|
@ -490,6 +490,7 @@ mld6_leavegroup_netif(struct netif *netif, const ip6_addr_t *groupaddr)
|
|||||||
return ERR_VAL;
|
return ERR_VAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if ESP_LWIP_MLD6_TIMERS_ONDEMAND
|
||||||
/**
|
/**
|
||||||
* Wrapper function with matching prototype which calls the actual callback
|
* Wrapper function with matching prototype which calls the actual callback
|
||||||
*/
|
*/
|
||||||
@ -499,6 +500,7 @@ static void mld6_timeout_cb(void *arg)
|
|||||||
|
|
||||||
mld6_tmr();
|
mld6_tmr();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Periodic timer for mld processing. Must be called every
|
* Periodic timer for mld processing. Must be called every
|
||||||
|
Reference in New Issue
Block a user