X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=pb.h;h=fe6fb5b3220f962690753ae5dab82a2428783dcf;hb=938c7ac3f302ccfa3044ce0720aeed9a4336ac0e;hp=63d313dc21e26d20ee6fbd48440b6c474b7b266e;hpb=e5b855fec5d2977971f96d817728c7a3ee8077b2;p=apps%2Fagl-service-can-low-level.git diff --git a/pb.h b/pb.h index 63d313dc..fe6fb5b3 100644 --- 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. */ -#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: @@ -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) \