Skip to content

Commit

Permalink
fix a compiler warning in upbdev
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 492117086
  • Loading branch information
ericsalo authored and copybara-github committed Dec 1, 2022
1 parent ca82889 commit 527a277
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion upbc/upbdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 527a277

Please sign in to comment.