From 60299d9270c1e7114a5aec864f192269ba6731dd Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Fri, 24 Feb 2017 21:00:51 +0200 Subject: [PATCH] Fix build failure --- tests/alltypes_callback/decode_alltypes_callback.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/alltypes_callback/decode_alltypes_callback.c b/tests/alltypes_callback/decode_alltypes_callback.c index 1d8c268..ec94690 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 */ -- 2.16.6