projects
/
petitboot
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
567e6be
)
lib/pb-protocol: suppress warning for unused buf_len arg
author
Jeremy Kerr
<jk@ozlabs.org>
Tue, 5 Mar 2013 05:49:15 +0000
(13:49 +0800)
committer
Geoff Levand
<geoff@infradead.org>
Tue, 5 Mar 2013 14:06:17 +0000
(06:06 -0800)
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>
lib/pb-protocol/pb-protocol.c
patch
|
blob
|
history
diff --git
a/lib/pb-protocol/pb-protocol.c
b/lib/pb-protocol/pb-protocol.c
index 54dfbf4e1f4e9469f627351268447f426d6afd9e..fdf24471377160e9a3c51abb87c4197e4e034e1c 100644
(file)
--- 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;
}