Fix warnings about unused objects

This commit is contained in:
Tony Wasserka committed 2025-01-21 12:28:21 +01:00
1 parent ac1b6d9482
commit b30733e2a7
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -378,6 +378,7 @@ static void SetFPCR(uint64_t Value) {
__asm("msr FPCR, %[Value]" ::[Value] "r"(Value));
}
#ifndef VIXL_SIMULATOR
__attribute__((naked)) static uint64_t ReadSVEVectorLengthInBits() {
///< Can't use rdvl instruction directly because compilers will complain that sve/sme is required.
__asm(R"(
@@ -385,6 +386,7 @@ __attribute__((naked)) static uint64_t ReadSVEVectorLengthInBits() {
ret;
)");
}
#endif
#else
[[maybe_unused]]
static uint32_t GetDCZID() {
+1 -1
View File
@@ -305,7 +305,7 @@ void AnalysisAction::ParseInterface(clang::ASTContext& context) {
const auto template_arg_loc = GetTemplateArgLocation(decl, 0);
if (auto emitted_function = llvm::dyn_cast<clang::FunctionDecl>(template_args[0].getAsDecl())) {
if (llvm::isa<clang::FunctionDecl>(template_args[0].getAsDecl())) {
// Process later
} else if (auto annotated_member = llvm::dyn_cast<clang::FieldDecl>(template_args[0].getAsDecl())) {
{