diff --git a/fesvr/syscall.cc b/fesvr/syscall.cc index ab7fc3b4..19c9f381 100644 --- a/fesvr/syscall.cc +++ b/fesvr/syscall.cc @@ -17,6 +17,10 @@ using namespace std::placeholders; #define RISCV_AT_FDCWD -100 +#ifdef __GNUC__ +# pragma GCC diagnostic ignored "-Wunused-parameter" +#endif + struct riscv_stat { target_endian dev; diff --git a/riscv/interactive.cc b/riscv/interactive.cc index 21cc31ce..bba45407 100644 --- a/riscv/interactive.cc +++ b/riscv/interactive.cc @@ -20,6 +20,10 @@ #include #include +#ifdef __GNUC__ +# pragma GCC diagnostic ignored "-Wunused-parameter" +#endif + #define MAX_CMD_STR 40 // maximum possible size of a command line #define BITS_PER_CHAR 8