From 527a277cc91e30d0ea0284da2059985e732abfc0 Mon Sep 17 00:00:00 2001 From: Eric Salo Date: Wed, 30 Nov 2022 23:58:32 -0800 Subject: [PATCH] fix a compiler warning in upbdev PiperOrigin-RevId: 492117086 --- upbc/upbdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/upbc/upbdev.c b/upbc/upbdev.c index 8aa62f5507..082d6bfb73 100644 --- a/upbc/upbdev.c +++ b/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);