diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-03-05 13:49:15 +0800 |
---|---|---|
committer | Geoff Levand <geoff@infradead.org> | 2013-03-05 06:06:17 -0800 |
commit | 0f29db72ec545322ea065c3b12c87b6fc7045b45 (patch) | |
tree | 7a4c1753a9dd4c79c0450ecbb710aa57c9f0c8ae | |
parent | 567e6be38a53cd6c832c4425645e1116fc9e5216 (diff) | |
download | talos-petitboot-0f29db72ec545322ea065c3b12c87b6fc7045b45.tar.gz talos-petitboot-0f29db72ec545322ea065c3b12c87b6fc7045b45.zip |
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 <jk@ozlabs.org>
Signed-off-by: Geoff Levand <geoff@infradead.org>
-rw-r--r-- | lib/pb-protocol/pb-protocol.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |