diff --git a/llvm/unittests/Support/ExtensibleRTTITest.cpp b/llvm/unittests/Support/ExtensibleRTTITest.cpp index 4b7fc43c0ea4..9715d26a9de2 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(D); - cast(BD); - cast(BD); + (void)cast(D); + (void)cast(BD); + (void)cast(BD); } TEST(ExtensibleRTTI, dyn_cast) {