Skip to content

Commit 816e2cf

Browse files
committed
lwipDhcpServer: suppress unused variable warning
1 parent 490a213 commit 816e2cf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: libraries/lwIpWrapper/src/lwipDhcpServer.c

+7
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ struct pbuf * dhcps_pbuf_alloc(uint16_t len)
311311
*******************************************************************************/
312312
static void send_offer(struct dhcps_msg *msg, uint16_t len)
313313
{
314+
(void)len;
314315
uint8_t *end;
315316
struct pbuf *p, *q;
316317
uint8_t *data;
@@ -380,6 +381,7 @@ static void send_offer(struct dhcps_msg *msg, uint16_t len)
380381
*******************************************************************************/
381382
static void send_nak(struct dhcps_msg *m, uint16_t len)
382383
{
384+
(void)len;
383385
uint8_t *end;
384386
struct pbuf *p, *q;
385387
uint8_t *data;
@@ -446,6 +448,7 @@ static void send_nak(struct dhcps_msg *m, uint16_t len)
446448
*******************************************************************************/
447449
static void send_ack(struct dhcps_msg *m, uint16_t len)
448450
{
451+
(void)len;
449452
uint8_t *end;
450453
struct pbuf *p, *q;
451454
uint8_t *data;
@@ -627,6 +630,10 @@ static void handle_dhcp(void *arg,
627630
const ip_addr_t *addr,
628631
uint16_t port)
629632
{
633+
(void)arg;
634+
(void)pcb;
635+
(void)addr;
636+
(void)port;
630637
struct dhcps_msg *pmsg_dhcps = NULL;
631638
int16_t tlen, malloc_len;
632639
uint8_t *p_dhcps_msg = NULL;

0 commit comments

Comments
 (0)