File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -675,21 +675,19 @@ void ObjcCategoryMerger::parseProtocolListInfo(const ConcatInputSection *isec,
675
675
ptrList.structCount += protocolCount;
676
676
ptrList.structSize = target->wordSize ;
677
677
678
- uint32_t expectedListSize =
678
+ [[maybe_unused]] uint32_t expectedListSize =
679
679
(protocolCount * target->wordSize ) +
680
680
/* header(count)*/ protocolListHeaderLayout.totalSize +
681
681
/* extra null value*/ target->wordSize ;
682
682
683
- // On Swift, the protocol list does not have the extra (unecessary) null value
684
- uint32_t expectedListSizeSwift = expectedListSize - target->wordSize ;
683
+ // On Swift, the protocol list does not have the extra (unnecessary) null
684
+ [[maybe_unused]] uint32_t expectedListSizeSwift =
685
+ expectedListSize - target->wordSize ;
685
686
686
687
assert ((expectedListSize == ptrListSym->isec ()->data .size () ||
687
688
expectedListSizeSwift == ptrListSym->isec ()->data .size ()) &&
688
689
" Protocol list does not match expected size" );
689
690
690
- // Suppress unsuded var warning
691
- (void )expectedListSize, (void )expectedListSizeSwift;
692
-
693
691
uint32_t off = protocolListHeaderLayout.totalSize ;
694
692
for (uint32_t inx = 0 ; inx < protocolCount; ++inx) {
695
693
const Reloc *reloc = ptrListSym->isec ()->getRelocAt (off);
You can’t perform that action at this time.
0 commit comments