Fixing compiler warnings, mostly related to unused parameters.

Thanks to David Hotham for the patch. Fixes issue 8.
This commit is contained in:
Petteri Aimonen
2012-04-18 20:15:36 +03:00
parent 9fbe9a5de3
commit d1ca88d20e
3 changed files with 16 additions and 4 deletions

5
pb.h
View File

@@ -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.