diff --git a/upb/encode.c b/upb/encode.c index 9327533ca1..2a6139bacb 100644 --- a/upb/encode.c +++ b/upb/encode.c @@ -227,6 +227,8 @@ static void encode_scalar(upb_encstate *e, const void *_field_mem, wire_type = UPB_WIRE_TYPE_DELIMITED; break; } + default: + UPB_UNREACHABLE(); } #undef CASE