diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2017-02-24 21:00:51 +0200 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2017-02-24 21:00:51 +0200 |
commit | 60299d9270c1e7114a5aec864f192269ba6731dd (patch) | |
tree | 0c74e62d7f2fada06b509a04aef84c46e81595c9 | |
parent | 599387d2446bc622d27fd13291ad12b365926c49 (diff) |
Fix build failure
-rw-r--r-- | tests/alltypes_callback/decode_alltypes_callback.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/alltypes_callback/decode_alltypes_callback.c b/tests/alltypes_callback/decode_alltypes_callback.c index 1d8c268c..ec946909 100644 --- a/tests/alltypes_callback/decode_alltypes_callback.c +++ b/tests/alltypes_callback/decode_alltypes_callback.c @@ -177,6 +177,7 @@ static bool read_limits(pb_istream_t *stream, const pb_field_t *field, void **ar bool check_alltypes(pb_istream_t *stream, int mode) { /* Values for use from callbacks through pointers. */ + bool status; uint32_t req_fixed32 = 1008; int32_t req_sfixed32 = -1009; float req_float = 1010.0f; @@ -395,7 +396,7 @@ bool check_alltypes(pb_istream_t *stream, int mode) alltypes.oneof_msg1.arg = &oneof_msg1; } - bool status = pb_decode(stream, AllTypes_fields, &alltypes); + status = pb_decode(stream, AllTypes_fields, &alltypes); #ifdef PB_ENABLE_MALLOC /* Just to check for any interference between pb_release() and callback fields */ |