Skip to content

Commit b1b5b03

Browse files
wilhuffa-maurice
authored andcommitted
Address control reaches end of non-void function warning
firestore/src/common/field_value.cc: In member function ‘std::string firebase::firestore::FieldValue::ToString() const’: firestore/src/common/field_value.cc:341:1: warning: control reaches end of non-void function [-Wreturn-type] 341 | } PiperOrigin-RevId: 299217768
1 parent f8e1fb1 commit b1b5b03

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

firestore/src/common/field_value.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,9 @@ std::string FieldValue::ToString() const {
336336
ValueToString(integer_increment_value()) + ")";
337337
}
338338

339-
FIREBASE_ASSERT_MESSAGE(false, "Unexpected FieldValue type: %d",
340-
static_cast<int>(type()));
339+
FIREBASE_ASSERT_MESSAGE_RETURN("<invalid>", false,
340+
"Unexpected FieldValue type: %d",
341+
static_cast<int>(type()));
341342
}
342343

343344
bool operator==(const FieldValue& lhs, const FieldValue& rhs) {

0 commit comments

Comments
 (0)