From ee40b52c620a8e3f6c118d84385c9bcb36235e22 Mon Sep 17 00:00:00 2001 From: Adam Duskett Date: Thu, 23 Apr 2020 11:53:06 -0700 Subject: [PATCH] dhcpclient: Fix unused-variable error in release dhcp_entry_names is only used when _DEBUG is defined, so wrap the array in Signed-off-by: Adam Duskett --- lib/system/dhcpclient/dhcpclient.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/system/dhcpclient/dhcpclient.c b/lib/system/dhcpclient/dhcpclient.c index fccd58e5d..cf58b5b4c 100644 --- a/lib/system/dhcpclient/dhcpclient.c +++ b/lib/system/dhcpclient/dhcpclient.c @@ -168,6 +168,7 @@ static const uint8_t rawdisc[] = { * +---------------------------------------------------------------+ */ +#if defined(_DEBUG) static const char *dhcp_entry_names[] = { "proposed ip", "dhcp server", @@ -183,6 +184,7 @@ static const char *dhcp_entry_names[] = { "rebinding secs", "renewal secs", }; +#endif static void lws_dhcpc_retry_conn(struct lws_sorted_usec_list *sul)