Add dummy return statements to silence false positive

"control reaches end of non-void function" warnings.

PiperOrigin-RevId: 554494210
pull/13453/head
Protobuf Team Bot 1 year ago committed by Copybara-Service
parent 5e03386555
commit 4280a0574c
  1. 2
      src/google/protobuf/generated_message_tctable_lite.cc

@ -2087,6 +2087,7 @@ PROTOBUF_NOINLINE const char* TcParser::MpRepeatedVarint(
default:
PROTOBUF_ASSUME(false);
return nullptr; // To silence -Werror=return-type in some toolchains
}
}
@ -2182,6 +2183,7 @@ PROTOBUF_NOINLINE const char* TcParser::MpPackedVarint(PROTOBUF_TC_PARAM_DECL) {
default:
PROTOBUF_ASSUME(false);
return nullptr; // To silence -Werror=return-type in some toolchains
}
}

Loading…
Cancel
Save