1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

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 <Aduskett@gmail.com>
This commit is contained in:
Adam Duskett 2020-04-23 11:53:06 -07:00 committed by Andy Green
parent 4e68e3b4bc
commit 182b5121d0

View file

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