diff --git a/xla/pjrt/pjrt_c_api_client.cc b/xla/pjrt/pjrt_c_api_client.cc index 112278fa73e00..7319ea3942145 100644 --- a/xla/pjrt/pjrt_c_api_client.cc +++ b/xla/pjrt/pjrt_c_api_client.cc @@ -1152,7 +1152,6 @@ PjRtCApiExecutable::GetHloModules() const { } if (program_format == ::pjrt::kMlirFormat) { - xla::HloProto hlo_proto; mlir::MLIRContext ctx; TF_ASSIGN_OR_RETURN( // NOLINT(clang-diagnostic-pre-c++20-compat) mlir::OwningOpRef module, diff --git a/xla/service/spmd/spmd_prepare.cc b/xla/service/spmd/spmd_prepare.cc index fc7bf1d1cc79e..51655b90861d4 100644 --- a/xla/service/spmd/spmd_prepare.cc +++ b/xla/service/spmd/spmd_prepare.cc @@ -55,7 +55,6 @@ absl::StatusOr ProcessScatter(HloInstruction* hlo, if (scatter->scatter_operand_count() > 1) { return false; } - ScatterDimensionNumbers scatt_dim = scatter->scatter_dimension_numbers(); HloInstruction* operand = scatter->scatter_operands()[0]; HloInstruction* indices = scatter->scatter_indices(); HloInstruction* updates = scatter->scatter_updates()[0];