aboutsummaryrefslogtreecommitdiff
path: root/disasm
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2022-09-22 17:34:33 -0700
committerAndrew Waterman <andrew@sifive.com>2022-10-04 15:40:01 -0700
commitce69fb5db97ecf240336b7826dd9dddeb32e5dca (patch)
treef78647d0eafa9abc414f5ded2a3663c7506cfd9c /disasm
parenta51e44ed228e48fc1dbf24ec7dc23cbd61a7874a (diff)
downloadriscv-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.cc6
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;