diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2012-04-18 20:15:36 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2012-04-18 20:15:36 +0300 |
commit | d1ca88d20ec1b205752546a40ef520a392d0002f (patch) | |
tree | 8b5452856d910af7eabba780b91e9bbbbd25fd48 /pb.h | |
parent | 9fbe9a5de30c3326bd7015e91c5ba634df49ee25 (diff) |
Fixing compiler warnings, mostly related to unused parameters.
Thanks to David Hotham for the patch. Fixes issue 8.
Diffstat (limited to 'pb.h')
-rw-r--r-- | pb.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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. |