diff --git a/php/ext/google/protobuf/php-upb.h b/php/ext/google/protobuf/php-upb.h index e2c35bb45e..88cacad5f1 100644 --- a/php/ext/google/protobuf/php-upb.h +++ b/php/ext/google/protobuf/php-upb.h @@ -772,7 +772,7 @@ UPB_API_INLINE void* upb_Arena_Realloc(upb_Arena* a, void* ptr, size_t oldsize, // this was not the last alloc. UPB_API_INLINE void upb_Arena_ShrinkLast(upb_Arena* a, void* ptr, size_t oldsize, size_t size) { - return UPB_PRIVATE(_upb_Arena_ShrinkLast)(a, ptr, oldsize, size); + UPB_PRIVATE(_upb_Arena_ShrinkLast)(a, ptr, oldsize, size); } #ifdef __cplusplus @@ -1753,7 +1753,7 @@ UPB_API_INLINE const upb_MiniTable* upb_MiniTableExtension_GetSubMessage( UPB_API_INLINE void upb_MiniTableExtension_SetSubMessage( upb_MiniTableExtension* e, const upb_MiniTable* m) { - return UPB_PRIVATE(_upb_MiniTableExtension_SetSubMessage)(e, m); + UPB_PRIVATE(_upb_MiniTableExtension_SetSubMessage)(e, m); } #ifdef __cplusplus diff --git a/ruby/ext/google/protobuf_c/ruby-upb.h b/ruby/ext/google/protobuf_c/ruby-upb.h index 0bc527b44c..f7525163fa 100755 --- a/ruby/ext/google/protobuf_c/ruby-upb.h +++ b/ruby/ext/google/protobuf_c/ruby-upb.h @@ -774,7 +774,7 @@ UPB_API_INLINE void* upb_Arena_Realloc(upb_Arena* a, void* ptr, size_t oldsize, // this was not the last alloc. UPB_API_INLINE void upb_Arena_ShrinkLast(upb_Arena* a, void* ptr, size_t oldsize, size_t size) { - return UPB_PRIVATE(_upb_Arena_ShrinkLast)(a, ptr, oldsize, size); + UPB_PRIVATE(_upb_Arena_ShrinkLast)(a, ptr, oldsize, size); } #ifdef __cplusplus @@ -1755,7 +1755,7 @@ UPB_API_INLINE const upb_MiniTable* upb_MiniTableExtension_GetSubMessage( UPB_API_INLINE void upb_MiniTableExtension_SetSubMessage( upb_MiniTableExtension* e, const upb_MiniTable* m) { - return UPB_PRIVATE(_upb_MiniTableExtension_SetSubMessage)(e, m); + UPB_PRIVATE(_upb_MiniTableExtension_SetSubMessage)(e, m); } #ifdef __cplusplus