From 1010f9178f09230b0bca3a7a63493fb0125ad10e Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Tue, 16 May 2023 17:14:10 -0700 Subject: [PATCH] Add dummy return value to silence "function does not return a value in all control paths" warning. `ABSL_ASSUME(false)` should have been enough, but it doesn't seem to be on some toolchains. PiperOrigin-RevId: 532618766 --- src/google/protobuf/map_field.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/google/protobuf/map_field.cc b/src/google/protobuf/map_field.cc index 24ce61d8e7..5eabf4a9d5 100644 --- a/src/google/protobuf/map_field.cc +++ b/src/google/protobuf/map_field.cc @@ -60,6 +60,7 @@ VariantKey RealKeyToVariantKey::operator()(const MapKey& value) const { return VariantKey(static_cast(value.GetBoolValue())); default: ABSL_ASSUME(false); + return VariantKey(uint64_t{}); } }