Skip to content

Commit 6800f42

Browse files
[lld] Fix warnings
This patch fixes: lld/MachO/ObjC.cpp:633:12: error: unused variable 'expectedListSize' [-Werror,-Wunused-variable] lld/MachO/ObjC.cpp:1034:12: error: unused variable 'newCatDef' [-Werror,-Wunused-variable]
1 parent 7d55b91 commit 6800f42

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lld/MachO/ObjC.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,7 @@ void ObjcCategoryMerger::parseProtocolListInfo(const ConcatInputSection *isec,
636636
/*extra null value*/ target->wordSize;
637637
assert(expectedListSize == ptrListSym->isec->data.size() &&
638638
"Protocol list does not match expected size");
639+
(void)expectedListSize;
639640

640641
uint32_t off = protocolListHeaderLayout.totalSize;
641642
for (uint32_t inx = 0; inx < protocolCount; ++inx) {
@@ -1033,6 +1034,7 @@ void ObjcCategoryMerger::mergeCategoriesIntoSingleCategory(
10331034

10341035
Defined *newCatDef = emitCategory(extInfo);
10351036
assert(newCatDef && "Failed to create a new category");
1037+
(void)newCatDef;
10361038

10371039
for (auto &catInfo : categories)
10381040
catInfo.wasMerged = true;

0 commit comments

Comments
 (0)