aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--disasm/disasm.cc4
-rw-r--r--riscv/processor.cc4
2 files changed, 8 insertions, 0 deletions
diff --git a/disasm/disasm.cc b/disasm/disasm.cc
index 1d7c6d5..a8ba91e 100644
--- a/disasm/disasm.cc
+++ b/disasm/disasm.cc
@@ -10,6 +10,10 @@
// For std::reverse:
#include <algorithm>
+#ifdef __GNUC__
+# pragma GCC diagnostic ignored "-Wunused-variable"
+#endif
+
// Indicates that the next arg (only) is optional.
// If the result of converting the next arg to a string is ""
// then it will not be printed.
diff --git a/riscv/processor.cc b/riscv/processor.cc
index 9bb7d04..217d49d 100644
--- a/riscv/processor.cc
+++ b/riscv/processor.cc
@@ -20,6 +20,10 @@
#include <string>
#include <algorithm>
+#ifdef __GNUC__
+# pragma GCC diagnostic ignored "-Wunused-variable"
+#endif
+
#undef STATE
#define STATE state