Code Review
/
apps
/
agl-service-can-low-level.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Setting version to 0.2.8-dev
[apps/agl-service-can-low-level.git]
/
pb.h
diff --git
a/pb.h
b/pb.h
index
63d313d
..
fe6fb5b
100644
(file)
--- a/
pb.h
+++ b/
pb.h
@@
-46,7
+46,7
@@
/* Version of the nanopb library. Just in case you want to check it in
* your own program. */
/* Version of the nanopb library. Just in case you want to check it in
* your own program. */
-#define NANOPB_VERSION nanopb-0.2.
7
-dev
+#define NANOPB_VERSION nanopb-0.2.
8
-dev
/* Include all the system headers needed by nanopb. You will need the
* definitions of the following:
/* Include all the system headers needed by nanopb. You will need the
* definitions of the following:
@@
-500,7
+500,11
@@
struct _pb_extension_t {
* messages if not used.
*/
#ifdef PB_NO_ERRMSG
* 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) \
#define PB_GET_ERROR(stream) "(errmsg disabled)"
#else
#define PB_RETURN_ERROR(stream,msg) \