network/room_member: Silence -Wswitch warning

This causes lots of warnings. Adding the Uninitialized case solves this
This commit is contained in:
zhupengfei 2019-08-20 22:23:32 +08:00
parent 1cf75e55c2
commit 698b471074
No known key found for this signature in database
GPG Key ID: DD129E108BD09378
1 changed files with 2 additions and 0 deletions

View File

@ -265,6 +265,8 @@ private:
inline const char* GetStateStr(const RoomMember::State& s) { inline const char* GetStateStr(const RoomMember::State& s) {
switch (s) { switch (s) {
case RoomMember::State::Uninitialized:
return "Uninitialized";
case RoomMember::State::Idle: case RoomMember::State::Idle:
return "Idle"; return "Idle";
case RoomMember::State::Joining: case RoomMember::State::Joining: