summaryrefslogtreecommitdiff
path: root/compiler/utils/jni_macro_assembler.cc
diff options
context:
space:
mode:
author Ulya Trafimovich <skvadrik@google.com> 2023-01-25 18:02:28 +0000
committer Ulya Trofimovich <skvadrik@google.com> 2023-02-03 16:53:31 +0000
commit7aeee970ef7e398f2fee38ec3b57075f5e440161 (patch)
tree9cfbff564f192fcc472c73eb9a67d5923ed584a1 /compiler/utils/jni_macro_assembler.cc
parent5e43dad53f664e8dcecdfb41c0a15abb659fa409 (diff)
riscv64: add missing UNUSED annotations.
The code compiles on other architectures that implement JNI compiler, because they use these variables. However the code won't compile for RISC-V as it falls into the default (unsupported) case. Test: lunch aosp_riscv64-userdebug && m dist Change-Id: I16010e806fe6c51fb0a7a20111e0d1feefde018c
Diffstat (limited to 'compiler/utils/jni_macro_assembler.cc')
-rw-r--r--compiler/utils/jni_macro_assembler.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/utils/jni_macro_assembler.cc b/compiler/utils/jni_macro_assembler.cc
index f11b48d8ca..8b47b38e63 100644
--- a/compiler/utils/jni_macro_assembler.cc
+++ b/compiler/utils/jni_macro_assembler.cc
@@ -58,6 +58,7 @@ MacroAsm32UniquePtr JNIMacroAssembler<PointerSize::k32>::Create(
return MacroAsm32UniquePtr(new (allocator) x86::X86JNIMacroAssembler(allocator));
#endif
default:
+ UNUSED(allocator);
LOG(FATAL) << "Unknown/unsupported 4B InstructionSet: " << instruction_set;
UNREACHABLE();
}