From 3ee74b7be334d1e2393a134f26de8dfe0cd65feb Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Thu, 22 Sep 2022 18:01:19 -0700 Subject: Silence unused-variable warnings in auto-generated code --- disasm/disasm.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'disasm/disasm.cc') 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 +#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. -- cgit v1.1