From: Jeremy Kerr Date: Tue, 5 Mar 2013 05:49:15 +0000 (+0800) Subject: lib/pb-protocol: suppress warning for unused buf_len arg X-Git-Tag: v1.0.0~751 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=0f29db72ec545322ea065c3b12c87b6fc7045b45 lib/pb-protocol: suppress warning for unused buf_len arg When assert is disabled, we end up with an warning for buf_len. Signed-off-by: Jeremy Kerr Signed-off-by: Geoff Levand --- diff --git a/lib/pb-protocol/pb-protocol.c b/lib/pb-protocol/pb-protocol.c index 54dfbf4..fdf2447 100644 --- a/lib/pb-protocol/pb-protocol.c +++ b/lib/pb-protocol/pb-protocol.c @@ -210,6 +210,7 @@ int pb_protocol_serialise_device(const struct device *dev, char *buf, int buf_le } assert(pos <= buf + buf_len); + (void)buf_len; return 0; }