diff options
-rw-r--r-- | fesvr/syscall.cc | 4 | ||||
-rw-r--r-- | riscv/interactive.cc | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/fesvr/syscall.cc b/fesvr/syscall.cc index ab7fc3b..19c9f38 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<uint64_t> dev; diff --git a/riscv/interactive.cc b/riscv/interactive.cc index 21cc31c..bba4540 100644 --- a/riscv/interactive.cc +++ b/riscv/interactive.cc @@ -20,6 +20,10 @@ #include <algorithm> #include <math.h> +#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 |