mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix some compiler warnings with asserts disabled
This commit is contained in:
@@ -957,6 +957,7 @@ bool ModuleFile::readDefaultWitnessTable(ProtocolDecl *proto) {
|
||||
|
||||
unsigned e = rawWitnessIDs.size();
|
||||
assert(e % 2 == 0 && "malformed default witness table");
|
||||
(void) e;
|
||||
|
||||
for (unsigned i = 0, e = rawWitnessIDs.size(); i < e; i += 2) {
|
||||
ValueDecl *requirement = cast<ValueDecl>(getDecl(rawWitnessIDs[i]));
|
||||
|
||||
Reference in New Issue
Block a user