From aebf3a0b608c66a834938660a9d511f61219217f Mon Sep 17 00:00:00 2001 From: Ryan Griege Date: Sun, 12 Mar 2023 21:03:31 -0500 Subject: [PATCH] Avoid "unused variable" compiler warning --- protobuf-c/protobuf-c.c | 1 + 1 file changed, 1 insertion(+) diff --git a/protobuf-c/protobuf-c.c b/protobuf-c/protobuf-c.c index 0606cf6..3d676a2 100644 --- a/protobuf-c/protobuf-c.c +++ b/protobuf-c/protobuf-c.c @@ -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;