From fa392423c84ac5d5acbf8fc650f8fcca1b322c52 Mon Sep 17 00:00:00 2001 From: Adam Green Date: Fri, 23 Aug 2013 22:14:38 -0700 Subject: [PATCH] Silence GCC unused variable warning. After making my previous commit to completely disable LWIP_ASSERT macro invocations, I ended up with a warning in pbuf.c where an err variable was set but only checked for success in an assert. I added a "(void)err;" reference to silence this warning. --- libraries/net/lwip/lwip/core/pbuf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/net/lwip/lwip/core/pbuf.c b/libraries/net/lwip/lwip/core/pbuf.c index 818eb62035..cd37c79723 100644 --- a/libraries/net/lwip/lwip/core/pbuf.c +++ b/libraries/net/lwip/lwip/core/pbuf.c @@ -998,6 +998,8 @@ pbuf_coalesce(struct pbuf *p, pbuf_layer layer) } 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; }