diff --git a/lld/MachO/ObjC.cpp b/lld/MachO/ObjC.cpp index 3e26ed5f2ebe8..9b2446360e4f7 100644 --- a/lld/MachO/ObjC.cpp +++ b/lld/MachO/ObjC.cpp @@ -636,7 +636,6 @@ void ObjcCategoryMerger::parseProtocolListInfo(const ConcatInputSection *isec, /*extra null value*/ target->wordSize; assert(expectedListSize == ptrListSym->isec->data.size() && "Protocol list does not match expected size"); - (void)expectedListSize; uint32_t off = protocolListHeaderLayout.totalSize; for (uint32_t inx = 0; inx < protocolCount; ++inx) { @@ -1034,7 +1033,6 @@ void ObjcCategoryMerger::mergeCategoriesIntoSingleCategory( Defined *newCatDef = emitCategory(extInfo); assert(newCatDef && "Failed to create a new category"); - (void)newCatDef; for (auto &catInfo : categories) catInfo.wasMerged = true;