Fix `-Wunused-variable` warnings in mpact_sim decoder.

PiperOrigin-RevId: 1003324854
Change-Id: I5303224899b4a2988a78517e7c890ce410d577bc
diff --git a/mpact/sim/decoder/encoding_group.cc b/mpact/sim/decoder/encoding_group.cc
index 33cd871..45893f4 100644
--- a/mpact/sim/decoder/encoding_group.cc
+++ b/mpact/sim/decoder/encoding_group.cc
@@ -475,7 +475,6 @@
 
   // It's an overlay constraint.
   Overlay* overlay = constraint->overlay;
-  std::string name = absl::StrCat(overlay->name(), "_value");
   uint64_t mask = 0;
   // Get the bits that correspond to the overlay.
   auto result = overlay->GetBitField((1 << overlay->declared_width()) - 1);
diff --git a/mpact/sim/decoder/format.cc b/mpact/sim/decoder/format.cc
index 1a23903..4da28e2 100644
--- a/mpact/sim/decoder/format.cc
+++ b/mpact/sim/decoder/format.cc
@@ -967,7 +967,6 @@
 
 // Top level function called to generate all the inserters for this format.
 std::string Format::GenerateInserters() const {
-  std::string class_output;
   std::string h_output;
   if (extractors_.empty() && overlay_extractors_.empty()) {
     return h_output;
diff --git a/mpact/sim/decoder/slot.cc b/mpact/sim/decoder/slot.cc
index 2361721..f525345 100644
--- a/mpact/sim/decoder/slot.cc
+++ b/mpact/sim/decoder/slot.cc
@@ -235,7 +235,6 @@
   int count = attribute_names_.size();
   for (auto const& [name, expr] : inst->attribute_map()) {
     count--;
-    std::string value;
     auto result = expr->GetValue();
     if (!result.ok()) {
       absl::StrAppend(&key, name, "[e1]:");
@@ -315,7 +314,6 @@
   if (pos == std::string::npos) {
     return "\\s+";
   }
-  std::string input(str.substr(pos));
   bool in_space = false;
   char p = '\0';
   for (auto c : str) {
@@ -635,7 +633,6 @@
 std::string Slot::GenerateDisasmSetterFcn(absl::string_view name,
                                           const Instruction* inst) const {
   std::string output;
-  std::string class_name = pascal_name() + "Slot";
   absl::StrAppend(&output, "void ", name, "(Instruction *inst) {\n");
   absl::StrAppend(&output, "  inst->SetDisassemblyString(");
   int indent = 2;
@@ -1134,7 +1131,6 @@
   // Append identifier for destination operands.
   sep.clear();
   for (auto const* dst_op : opcode->dest_op_vec()) {
-    std::string dest_op_enum;
     if (dst_op->is_array()) {
       absl::StrAppend(&key, sep, "[", dst_op->name(), "]");
     } else {
@@ -1291,7 +1287,6 @@
   for (auto const& [unused, inst_ptr] : instruction_map_) {
     auto* instruction = inst_ptr;
     std::string opcode_name = instruction->opcode()->pascal_name();
-    std::string opcode_enum = absl::StrCat("OpcodeEnum::k", opcode_name);
     absl::StrAppend(&output, "\n  // ***   k", opcode_name, "   ***\n");
     // For the opcode and any child opcodes, add the semantic function and
     // operand_setter_ lambda.