From: Scott Beamer Date: Tue, 26 Aug 2014 01:23:47 +0000 (-0700) Subject: clean up warnings from clang X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0ac8a9b068c75aac6b28de175ecb6f729ec8b67d;p=riscv-isa-sim.git clean up warnings from clang --- diff --git a/riscv/riscv-dis.cc b/riscv/riscv-dis.cc index 1b958df..19d579d 100644 --- a/riscv/riscv-dis.cc +++ b/riscv/riscv-dis.cc @@ -30,8 +30,6 @@ int main(int argc, char** argv) d.add_insn(disasm_insn); }); - auto argv1 = parser.parse(argv); - while (getline(cin, s)) { for (size_t start = 0; (start = s.find("DASM(", start)) != string::npos; ) diff --git a/riscv/trap.h b/riscv/trap.h index 6e80a7c..b795948 100644 --- a/riscv/trap.h +++ b/riscv/trap.h @@ -5,7 +5,7 @@ #include "decode.h" -class state_t; +struct state_t; class trap_t {