From 698b47107414438d3527259e4b4e8af16c3019be Mon Sep 17 00:00:00 2001 From: zhupengfei Date: Tue, 20 Aug 2019 22:23:32 +0800 Subject: [PATCH] network/room_member: Silence -Wswitch warning This causes lots of warnings. Adding the Uninitialized case solves this --- src/network/room_member.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/network/room_member.h b/src/network/room_member.h index a7c4a717af..ad5d14b445 100644 --- a/src/network/room_member.h +++ b/src/network/room_member.h @@ -265,6 +265,8 @@ private: inline const char* GetStateStr(const RoomMember::State& s) { switch (s) { + case RoomMember::State::Uninitialized: + return "Uninitialized"; case RoomMember::State::Idle: return "Idle"; case RoomMember::State::Joining: