fix a compiler warning in upbdev

PiperOrigin-RevId: 492117086
pull/13171/head
Eric Salo 2 years ago committed by Copybara-Service
parent ca828897c2
commit 527a277cc9
  1. 3
      upbc/upbdev.c

@ -93,7 +93,8 @@ upb_StringView upbdev_ProcessOutput(const char* buf, size_t size, upb_Arena* a,
upb_Status* status) {
upb_StringView out = {.data = NULL, .size = 0};
int response = upbc_JsonDecode(buf, size, a, status);
const google_protobuf_compiler_CodeGeneratorResponse* response =
upbc_JsonDecode(buf, size, a, status);
if (upb_Status_IsOk(status)) {
out.data =
google_protobuf_compiler_CodeGeneratorResponse_serialize(response, a, &out.size);

Loading…
Cancel
Save