Skip to content

Commit 51a4ff9

Browse files
committed
NFC: Address a -Wunused-result warning in Decl.cpp.
1 parent b22b8f0 commit 51a4ff9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/AST/Decl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6755,8 +6755,8 @@ void AbstractStorageDecl::AccessorRecord::removeAccessor(
67556755
) {
67566756
// Remove this accessor from the list of accessors.
67576757
assert(getAccessor(accessor->getAccessorKind()) == accessor);
6758-
std::remove(getAccessorsBuffer().begin(), getAccessorsBuffer().end(),
6759-
accessor);
6758+
(void)std::remove(getAccessorsBuffer().begin(), getAccessorsBuffer().end(),
6759+
accessor);
67606760

67616761
// Clear out the accessor kind -> index mapping.
67626762
std::memset(AccessorIndices, 0, sizeof(AccessorIndices));

0 commit comments

Comments
 (0)