From 38b4beed6bb6c952340e3e856b0f57fb5faadc10 Mon Sep 17 00:00:00 2001 From: Esun Kim Date: Tue, 22 Dec 2020 14:49:26 -0800 Subject: [PATCH] Fix clang-tidy function 'upb_encode_ex' has a definition with different parameter names --- upb/encode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upb/encode.c b/upb/encode.c index f73ff09f8e..51859b8fe8 100644 --- a/upb/encode.c +++ b/upb/encode.c @@ -444,7 +444,7 @@ static void encode_message(upb_encstate *e, const char *msg, *size = (e->limit - e->ptr) - pre_len; } -char *upb_encode_ex(const void *msg, const upb_msglayout *m, int options, +char *upb_encode_ex(const void *msg, const upb_msglayout *l, int options, upb_arena *arena, size_t *size) { upb_encstate e; unsigned depth = (unsigned)options >> 16; @@ -462,7 +462,7 @@ char *upb_encode_ex(const void *msg, const upb_msglayout *m, int options, *size = 0; ret = NULL; } else { - encode_message(&e, msg, m, size); + encode_message(&e, msg, l, size); *size = e.limit - e.ptr; if (*size == 0) { static char ch;