Remove unused variable from encode_test.cc

This should fix a compiler error about that variable being set but unused.

PiperOrigin-RevId: 557165030
pull/13675/head^2
Adam Cozzette 1 year ago committed by Copybara-Service
parent f669ef6576
commit a56581c078
  1. 2
      upb/mini_descriptor/internal/encode_test.cc

@ -290,10 +290,8 @@ TEST_P(MiniTableTest, Extendible) {
upb::Arena arena;
upb::MtDataEncoder e;
ASSERT_TRUE(e.StartMessage(kUpb_MessageModifier_IsExtendable));
int count = 0;
for (int i = kUpb_FieldType_Double; i < kUpb_FieldType_SInt64; i++) {
ASSERT_TRUE(e.PutField(static_cast<upb_FieldType>(i), i, 0));
count++;
}
upb::Status status;
upb_MiniTable* table = _upb_MiniTable_Build(

Loading…
Cancel
Save