diff options
author | Andrew Waterman <andrew@sifive.com> | 2022-09-22 17:34:33 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2022-10-04 15:40:01 -0700 |
commit | ce69fb5db97ecf240336b7826dd9dddeb32e5dca (patch) | |
tree | f78647d0eafa9abc414f5ded2a3663c7506cfd9c /disasm | |
parent | a51e44ed228e48fc1dbf24ec7dc23cbd61a7874a (diff) | |
download | riscv-isa-sim-ce69fb5db97ecf240336b7826dd9dddeb32e5dca.zip riscv-isa-sim-ce69fb5db97ecf240336b7826dd9dddeb32e5dca.tar.gz riscv-isa-sim-ce69fb5db97ecf240336b7826dd9dddeb32e5dca.tar.bz2 |
Suppress most unused variable warnings
Diffstat (limited to 'disasm')
-rw-r--r-- | disasm/disasm.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/disasm/disasm.cc b/disasm/disasm.cc index 7bb3ec0..1d7c6d5 100644 --- a/disasm/disasm.cc +++ b/disasm/disasm.cc @@ -180,7 +180,7 @@ struct : public arg_t { } rvc_fp_rs2s; struct : public arg_t { - std::string to_string(insn_t insn) const { + std::string to_string(insn_t UNUSED insn) const { return xpr_name[X_SP]; } } rvc_sp; @@ -314,7 +314,7 @@ struct : public arg_t { } vm; struct : public arg_t { - std::string to_string(insn_t insn) const { + std::string to_string(insn_t UNUSED insn) const { return "v0"; } } v0; @@ -358,7 +358,7 @@ struct : public arg_t { } v_vtype; struct : public arg_t { - std::string to_string(insn_t insn) const { + std::string to_string(insn_t UNUSED insn) const { return "x0"; } } x0; |