Skip to content

Commit 71859de

Browse files
committed
rtl8195am - fix dhcps.c warnings
Fix the following errors: [Warning] dhcps.c@158,1: label 'Exit' defined but not used [-Wunused-label] [Warning] dhcps.c@161,13: 'dump_client_table' defined but not used [-Wunused-function] Signed-off-by: Tony Wu <[email protected]>
1 parent 7ac365c commit 71859de

File tree

1 file changed

+3
-1
lines changed
  • targets/TARGET_Realtek/TARGET_AMEBA/sdk/common/network/dhcp

1 file changed

+3
-1
lines changed

targets/TARGET_Realtek/TARGET_AMEBA/sdk/common/network/dhcp/dhcps.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,10 @@ static uint8_t check_client_request_ip(ip_addr_t *client_req_ip, uint8_t *hwaddr
155155
if(i == DHCP_POOL_END+1)
156156
ip_addr4 = 0;
157157

158-
Exit:
159158
return ip_addr4;
160159
}
160+
161+
#if debug_dhcps
161162
static void dump_client_table()
162163
{
163164
#if 0
@@ -175,6 +176,7 @@ static void dump_client_table()
175176
printf("\r\n");
176177
#endif
177178
}
179+
#endif
178180
#endif //CONFIG_DHCPS_KEPT_CLIENT_INFO
179181
#endif
180182

0 commit comments

Comments
 (0)