[llvm] 52328da - silence new -Wunused-result warnings in test
Krasimir Georgiev via llvm-commits
llvm-commits at lists.llvm.org
Wed May 11 23:34:59 PDT 2022
Author: Krasimir Georgiev
Date: 2022-05-12T08:30:36+02:00
New Revision: 52328dafda13711653fd15aa4db34db350471a1f
URL: https://github.com/llvm/llvm-project/commit/52328dafda13711653fd15aa4db34db350471a1f
DIFF: https://github.com/llvm/llvm-project/commit/52328dafda13711653fd15aa4db34db350471a1f.diff
LOG: silence new -Wunused-result warnings in test
No functional changes intended.
After https://github.com/llvm/llvm-project/commit/f156b51aecc676a9051136f6f5cb74e37dd574d1,
new -Wunused-result warnings popped up in this test:
https://buildkite.com/llvm-project/upstream-bazel/builds/28320#bc3ec049-af39-4114-b7b8-4cbc180bc09b
Added:
Modified:
llvm/unittests/Support/ExtensibleRTTITest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/Support/ExtensibleRTTITest.cpp b/llvm/unittests/Support/ExtensibleRTTITest.cpp
index 4b7fc43c0ea41..9715d26a9de29 100644
--- a/llvm/unittests/Support/ExtensibleRTTITest.cpp
+++ b/llvm/unittests/Support/ExtensibleRTTITest.cpp
@@ -66,9 +66,9 @@ TEST(ExtensibleRTTI, cast) {
MyDerivedType D;
MyBaseType &BD = D;
- cast<MyBaseType>(D);
- cast<MyBaseType>(BD);
- cast<MyDerivedType>(BD);
+ (void)cast<MyBaseType>(D);
+ (void)cast<MyBaseType>(BD);
+ (void)cast<MyDerivedType>(BD);
}
TEST(ExtensibleRTTI, dyn_cast) {
More information about the llvm-commits
mailing list