aboutsummaryrefslogtreecommitdiff
path: root/disasm/disasm.cc
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2022-09-22 18:01:19 -0700
committerAndrew Waterman <andrew@sifive.com>2022-10-04 15:40:28 -0700
commit3ee74b7be334d1e2393a134f26de8dfe0cd65feb (patch)
tree5a0aafb667ec910650cfd53455718b7f83811402 /disasm/disasm.cc
parent08bac06bfdeeb95d54de6e2ff25f81dcf12b1ba2 (diff)
downloadspike-3ee74b7be334d1e2393a134f26de8dfe0cd65feb.zip
spike-3ee74b7be334d1e2393a134f26de8dfe0cd65feb.tar.gz
spike-3ee74b7be334d1e2393a134f26de8dfe0cd65feb.tar.bz2
Silence unused-variable warnings in auto-generated code
Diffstat (limited to 'disasm/disasm.cc')
-rw-r--r--disasm/disasm.cc4
1 files changed, 4 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.