minor derivative to reduce compiler warnings and tag read-only parameters as const.

Dependents:   EthernetInterface

Fork of lwip by mbed official

Revision:
12:931deec14b08
Parent:
3:9a63dd787415
diff -r 4b3f6f8b92d2 -r 931deec14b08 core/pbuf.c
--- 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;
 }