upb: stop returning void from void functions

PiperOrigin-RevId: 592844285
pull/15168/head
Eric Salo 11 months ago committed by Copybara-Service
parent 68f5ffb3a9
commit fd6f83576f
  1. 2
      upb/mem/arena.h
  2. 2
      upb/mini_table/extension.h

@ -68,7 +68,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

@ -37,7 +37,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

Loading…
Cancel
Save