Fix 64-bitness warnings in the example.
[apps/low-level-can-service.git] / pb.h
diff --git a/pb.h b/pb.h
index ea94efc..502958b 100644 (file)
--- a/pb.h
+++ b/pb.h
 #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.