Merge pull request #3163 from lioncash/enum

room/room_member: Silence -Wswitch warnings
This commit is contained in:
bunnei 2017-11-29 10:40:10 -05:00 committed by GitHub
commit 9b8041e01c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -177,6 +177,9 @@ void Room::RoomImpl::ServerLoop() {
case ENET_EVENT_TYPE_DISCONNECT: case ENET_EVENT_TYPE_DISCONNECT:
HandleClientDisconnection(event.peer); HandleClientDisconnection(event.peer);
break; break;
case ENET_EVENT_TYPE_NONE:
case ENET_EVENT_TYPE_CONNECT:
break;
} }
} }
} }

View File

@ -308,6 +308,9 @@ void RoomMember::RoomMemberImpl::Disconnect() {
case ENET_EVENT_TYPE_DISCONNECT: case ENET_EVENT_TYPE_DISCONNECT:
server = nullptr; server = nullptr;
return; return;
case ENET_EVENT_TYPE_NONE:
case ENET_EVENT_TYPE_CONNECT:
break;
} }
} }
// didn't disconnect gracefully force disconnect // didn't disconnect gracefully force disconnect