mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Remove unused variable warnings when omitting stuff at compile-time.
This commit is contained in:
committed by
Simon Kelley
parent
b5d9a362b4
commit
408c368fa5
@@ -1711,7 +1711,11 @@ static void calculate_times(struct dhcp_context *context, unsigned int *min_time
|
||||
static void update_leases(struct state *state, struct dhcp_context *context, struct in6_addr *addr, unsigned int lease_time, time_t now)
|
||||
{
|
||||
struct dhcp_lease *lease = lease6_find_by_addr(addr, 128, 0);
|
||||
#ifdef HAVE_SCRIPT
|
||||
struct dhcp_netid *tagif = run_tag_if(state->tags);
|
||||
#endif
|
||||
|
||||
(void)context;
|
||||
|
||||
if (!lease)
|
||||
lease = lease6_allocate(addr, state->ia_type == OPTION6_IA_NA ? LEASE_NA : LEASE_TA);
|
||||
|
||||
Reference in New Issue
Block a user