Fix bug #51686: pbuf_remove_header: silence unused variable warning

but in another way than the provided patch
This commit is contained in:
Dirk Ziegelmeier 2017-08-08 12:13:45 +02:00
parent e65a388c1f
commit 6209c8d347

View File

@ -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 */