mirror of
https://github.com/transmission/transmission
synced 2024-12-28 02:27:41 +00:00
fix: dead store warning in peer-msgs.cc (#1804)
This commit is contained in:
parent
19de6035a5
commit
abdfcb9681
1 changed files with 5 additions and 1 deletions
|
@ -1835,8 +1835,12 @@ static ReadState canRead(tr_peerIo* io, void* vmsgs, size_t* piece)
|
|||
break;
|
||||
|
||||
default:
|
||||
ret = READ_ERR;
|
||||
#ifdef TR_ENABLE_ASSERTS
|
||||
TR_ASSERT_MSG(false, "unhandled peer messages state %d", (int)msgs->state);
|
||||
#else
|
||||
ret = READ_ERR;
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue