X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=pb.h;h=502958be51fa04ce585afa406cdc3e93bc49f8ef;hb=7bcf7ef5796c66125a2a4df1317b55a27adedd89;hp=cd9c75d09499a8167f0515a0a48e7b6c218fd11d;hpb=fcfc99f766f278564c062922a2857c21ac9af041;p=apps%2Fagl-service-can-low-level.git diff --git a/pb.h b/pb.h index cd9c75d0..502958be 100644 --- a/pb.h +++ b/pb.h @@ -17,6 +17,11 @@ #define pb_packed #endif +/* Handly macro for suppressing unreferenced-parameter compiler warnings. */ +#ifndef UNUSED +#define UNUSED(x) (void)(x) +#endif + /* List of possible field types. These are used in the autogenerated code. * Least-significant 4 bits tell the scalar type * Most-significant 4 bits specify repeated/required/packed etc. @@ -159,4 +164,4 @@ typedef enum { #define PB_LAST_FIELD {0,0,0,0} -#endif \ No newline at end of file +#endif