Code Review
/
apps
/
agl-service-can-low-level.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
b63e582
)
Fix unused parameter warning when building without errmsg.
author
Petteri Aimonen
<jpa@git.mail.kapsi.fi>
Sat, 5 Apr 2014 10:25:44 +0000
(13:25 +0300)
committer
Petteri Aimonen
<jpa@git.mail.kapsi.fi>
Sat, 5 Apr 2014 10:25:44 +0000
(13:25 +0300)
pb.h
patch
|
blob
|
history
diff --git
a/pb.h
b/pb.h
index
63d313d
..
aca96ee
100644
(file)
--- a/
pb.h
+++ b/
pb.h
@@
-500,7
+500,11
@@
struct _pb_extension_t {
* messages if not used.
*/
#ifdef PB_NO_ERRMSG
-#define PB_RETURN_ERROR(stream,msg) return false
+#define PB_RETURN_ERROR(stream,msg) \
+ do {\
+ UNUSED(stream); \
+ return false; \
+ } while(0)
#define PB_GET_ERROR(stream) "(errmsg disabled)"
#else
#define PB_RETURN_ERROR(stream,msg) \