From dd77460c65c6b053e7b2eb42249b988b9c9d7cba Mon Sep 17 00:00:00 2001 From: Bo Yang Date: Wed, 20 Sep 2017 16:14:49 -0700 Subject: Do not expose encode_unknown --- upb/pb/encoder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'upb/pb/encoder.c') diff --git a/upb/pb/encoder.c b/upb/pb/encoder.c index 3734710..839ede0 100644 --- a/upb/pb/encoder.c +++ b/upb/pb/encoder.c @@ -374,7 +374,8 @@ static void *encode_startdelimfield(void *c, const void *hd) { return ok ? c : UPB_BREAK; } -bool encode_unknown(void *c, const void *hd, const char *buf, size_t len) { +static bool encode_unknown(void *c, const void *hd, const char *buf, + size_t len) { UPB_UNUSED(hd); return encode_bytes(c, buf, len) && commit(c); } -- cgit v1.2.3