summaryrefslogtreecommitdiffstats
path: root/pb.h
diff options
context:
space:
mode:
Diffstat (limited to 'pb.h')
-rw-r--r--pb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/pb.h b/pb.h
index ea94efc5..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.