From 4280a0574cb7857fad49e38ae8749e3dcd99df13 Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Mon, 7 Aug 2023 09:08:39 -0700 Subject: [PATCH] Add dummy return statements to silence false positive "control reaches end of non-void function" warnings. PiperOrigin-RevId: 554494210 --- src/google/protobuf/generated_message_tctable_lite.cc | 2 ++ 1 file changed, 2 insertions(+) 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 } }