Fix build failure
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>
Fri, 24 Feb 2017 19:00:51 +0000 (21:00 +0200)
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>
Fri, 24 Feb 2017 19:00:51 +0000 (21:00 +0200)
tests/alltypes_callback/decode_alltypes_callback.c

index 1d8c268..ec94690 100644 (file)
@@ -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 */