Browse Source

Silence unused-variable warnings in auto-generated code

pull/1089/head
Andrew Waterman 4 years ago
parent
commit
3ee74b7be3
  1. 4
      disasm/disasm.cc
  2. 4
      riscv/processor.cc

4
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.

4
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

Loading…
Cancel
Save