diff options
author | Kazu Hirata <kazu@google.com> | 2024-03-18 12:01:24 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2024-03-18 12:01:24 -0700 |
commit | 6800f422c22ffd672b1e31f0d0a3fa29d19b7a13 (patch) | |
tree | c1d2e242151d4633ed11f0a363542e57dc6bd324 | |
parent | 7d55b916a5e5091ff21d6fea4aaa54efe73535a7 (diff) | |
download | llvm-6800f422c22ffd672b1e31f0d0a3fa29d19b7a13.zip llvm-6800f422c22ffd672b1e31f0d0a3fa29d19b7a13.tar.gz llvm-6800f422c22ffd672b1e31f0d0a3fa29d19b7a13.tar.bz2 |
[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]
-rw-r--r-- | lld/MachO/ObjC.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lld/MachO/ObjC.cpp b/lld/MachO/ObjC.cpp index 9b24463..3e26ed5 100644 --- a/lld/MachO/ObjC.cpp +++ b/lld/MachO/ObjC.cpp @@ -636,6 +636,7 @@ 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) { @@ -1033,6 +1034,7 @@ void ObjcCategoryMerger::mergeCategoriesIntoSingleCategory( Defined *newCatDef = emitCategory(extInfo); assert(newCatDef && "Failed to create a new category"); + (void)newCatDef; for (auto &catInfo : categories) catInfo.wasMerged = true; |