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:
parent
4e68e3b4bc
commit
182b5121d0
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue