summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/alltypes_callback/decode_alltypes_callback.c3
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 */