mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 12:00:17 +02:00
Fix warnings about unused objects
This commit is contained in:
1 parent
ac1b6d9482
commit
b30733e2a7
2 files changed
+3
-1
No files matched your search
@@ -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() {
|
||||
|
||||
@@ -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())) {
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user