1
0
Fork 0
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:
Charles Kerr 2021-09-14 21:23:53 -05:00 committed by GitHub
parent 43d1ece562
commit 19de6035a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)