minor derivative to reduce compiler warnings and tag read-only parameters as const.
Fork of lwip by
Diff: core/pbuf.c
- Revision:
- 12:931deec14b08
- Parent:
- 3:9a63dd787415
--- a/core/pbuf.c Mon Aug 19 18:37:54 2013 +0300 +++ b/core/pbuf.c Tue Sep 10 15:14:39 2013 +0300 @@ -998,6 +998,8 @@ } err = pbuf_copy(q, p); LWIP_ASSERT("pbuf_copy failed", err == ERR_OK); + /* next line references err variable even if LWIP_ASSERT is ignored. */ + (void)err; pbuf_free(p); return q; }