mirror of
https://github.com/transmission/transmission
synced 2025-02-22 22:20:39 +00:00
fix: dead store warning in handshake.cc (#1803)
This commit is contained in:
parent
43d1ece562
commit
19de6035a5
1 changed files with 5 additions and 1 deletions
|
@ -1067,8 +1067,12 @@ static ReadState canRead(struct tr_peerIo* io, void* vhandshake, size_t* piece)
|
|||
break;
|
||||
|
||||
default:
|
||||
ret = READ_ERR;
|
||||
#ifdef TR_ENABLE_ASSERTS
|
||||
TR_ASSERT_MSG(false, "unhandled handshake state %d", (int)handshake->state);
|
||||
#else
|
||||
ret = READ_ERR;
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (ret != READ_NOW)
|
||||
|
|
Loading…
Reference in a new issue