mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-26 12:41:01 +08:00
protobuf-c: pack_buffer_packed_payload(): Remove unused increment
Since this case immediately returns, the `rv` variable is not used. See https://github.com/protobuf-c/protobuf-c/issues/517.
This commit is contained in:
parent
bee044643e
commit
951a5278e0
@ -1888,7 +1888,6 @@ pack_buffer_packed_payload(const ProtobufCFieldDescriptor *field,
|
||||
for (i = 0; i < count; i++) {
|
||||
unsigned len = boolean_pack(((protobuf_c_boolean *) array)[i], scratch);
|
||||
buffer->append(buffer, len, scratch);
|
||||
rv += len;
|
||||
}
|
||||
return count;
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user