[PATCH] D156261: [NFC] Cast unchecked return values to void.
Sindhu Chittireddy via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 25 14:12:49 PDT 2023
schittir created this revision.
schittir added reviewers: tahonermann, aaron.ballman.
Herald added a project: All.
schittir requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D156261
Files:
clang/lib/Sema/SemaDeclCXX.cpp
Index: clang/lib/Sema/SemaDeclCXX.cpp
===================================================================
--- clang/lib/Sema/SemaDeclCXX.cpp
+++ clang/lib/Sema/SemaDeclCXX.cpp
@@ -2482,7 +2482,7 @@
<< /*Call*/ 1 << /*Function*/ 0 << E->getSourceRange();
}
for (auto A : E->arguments()) {
- getDerived().TraverseStmt(A);
+ (void)getDerived().TraverseStmt(A);
}
return true;
}
@@ -2516,7 +2516,7 @@
bool VisitBlockExpr(BlockExpr *T) { return true; }
} Visitor(*this, FD);
- Visitor.TraverseStmt(FD->getBody());
+ (void)Visitor.TraverseStmt(FD->getBody());
}
/// Get the class that is directly named by the current context. This is the
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156261.544092.patch
Type: text/x-patch
Size: 709 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230725/ec940d3d/attachment-0001.bin>
More information about the cfe-commits
mailing list