From 0ac8a9b068c75aac6b28de175ecb6f729ec8b67d Mon Sep 17 00:00:00 2001 From: Scott Beamer Date: Mon, 25 Aug 2014 18:23:47 -0700 Subject: [PATCH] clean up warnings from clang --- riscv/riscv-dis.cc | 2 -- riscv/trap.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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 { -- 2.30.2