Skip to content

Commit fee3216

Browse files
author
Alex B
committed
[lld-macho] Address Feedback #1
1 parent a4b316e commit fee3216

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lld/MachO/ObjC.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,9 @@ void ObjcCategoryMerger::parseProtocolListInfo(const ConcatInputSection *isec,
639639
assert(expectedListSize == ptrListSym->isec->data.size() &&
640640
"Protocol list does not match expected size");
641641

642+
// Suppress unsuded var warning
643+
(void)expectedListSize;
644+
642645
uint32_t off = protocolListHeaderLayout.totalSize;
643646
for (uint32_t inx = 0; inx < protocolCount; ++inx) {
644647
const Reloc *reloc = ptrListSym->isec->getRelocAt(off);
@@ -1036,6 +1039,9 @@ void ObjcCategoryMerger::mergeCategoriesIntoSingleCategory(
10361039
Defined *newCatDef = emitCategory(extInfo);
10371040
assert(newCatDef && "Failed to create a new category");
10381041

1042+
// Suppress unsuded var warning
1043+
(void)newCatDef;
1044+
10391045
for (auto &catInfo : categories)
10401046
catInfo.wasMerged = true;
10411047
}

0 commit comments

Comments
 (0)