mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-26 21:04:23 +08:00
protobuf_c_message_unpack(): Remove a shadowed variable
Here 'j' is used as a loop index and there's no need to re-declare it inside this block. Found with -Wshadow.
This commit is contained in:
parent
6eb0b271ae
commit
c5c236b42e
@ -3213,7 +3213,6 @@ protobuf_c_message_unpack(const ProtobufCMessageDescriptor *desc,
|
||||
unsigned max = (i_slab == which_slab) ?
|
||||
in_slab_index : (1UL << (i_slab + 4));
|
||||
ScannedMember *slab = scanned_member_slabs[i_slab];
|
||||
unsigned j;
|
||||
|
||||
for (j = 0; j < max; j++) {
|
||||
if (!parse_member(slab + j, rv, allocator)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user