Merge pull request #545 from rgriege/fix-clang-warning

Avoid "unused variable" compiler warning
This commit is contained in:
Robert Edmonds 2023-07-02 02:46:50 -04:00 committed by GitHub
commit cdab7b8a1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1923,6 +1923,7 @@ repeated_field_pack_to_buffer(const ProtobufCFieldDescriptor *field,
buffer->append(buffer, rv, scratch);
tmp = pack_buffer_packed_payload(field, count, array, buffer);
assert(tmp == payload_len);
(void)tmp;
return rv + payload_len;
} else {
size_t siz;