Remove unused variable warnings when omitting stuff at compile-time.

This commit is contained in:
Vladislav Grishenko
2013-09-24 16:18:49 +01:00
committed by Simon Kelley
parent b5d9a362b4
commit 408c368fa5
7 changed files with 22 additions and 0 deletions

View File

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