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

View file

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