mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-10 01:23:48 +08:00
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 */
|
/* remember current payload pointer */
|
||||||
payload = p->payload;
|
payload = p->payload;
|
||||||
|
LWIP_UNUSED_ARG(payload); /* only used in LWIP_DEBUGF below */
|
||||||
|
|
||||||
if (increment_magnitude <= p->len) {
|
if (increment_magnitude <= p->len) {
|
||||||
/* increase payload pointer */
|
/* increase payload pointer */
|
||||||
|
|||||||
Reference in New Issue
Block a user