Fix bug #51686: pbuf_remove_header: silence unused variable warning
but in another way than the provided patch
This commit is contained in:
@@ -593,6 +593,7 @@ pbuf_remove_header(struct pbuf *p, size_t header_size_decrement)
|
||||
|
||||
/* remember current payload pointer */
|
||||
payload = p->payload;
|
||||
LWIP_UNUSED_ARG(payload); /* only used in LWIP_DEBUGF below */
|
||||
|
||||
if (increment_magnitude <= p->len) {
|
||||
/* increase payload pointer */
|
||||
|
||||
Reference in New Issue
Block a user