From 7aeee970ef7e398f2fee38ec3b57075f5e440161 Mon Sep 17 00:00:00 2001 From: Ulya Trafimovich Date: Wed, 25 Jan 2023 18:02:28 +0000 Subject: 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 --- disassembler/disassembler.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'disassembler/disassembler.cc') diff --git a/disassembler/disassembler.cc b/disassembler/disassembler.cc index 53461ce5ae..a05183aed6 100644 --- a/disassembler/disassembler.cc +++ b/disassembler/disassembler.cc @@ -62,6 +62,7 @@ Disassembler* Disassembler::Create(InstructionSet instruction_set, DisassemblerO return new x86::DisassemblerX86(options, /* supports_rex= */ true); #endif default: + UNUSED(options); UNIMPLEMENTED(FATAL) << static_cast(instruction_set); UNREACHABLE(); } -- cgit v1.2.3-59-g8ed1b