diff --git a/src/google/protobuf/generated_message_tctable_lite.cc b/src/google/protobuf/generated_message_tctable_lite.cc index 765459d507..64aa01580c 100644 --- a/src/google/protobuf/generated_message_tctable_lite.cc +++ b/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 } }