Commits


Sutou Kouhei authored and GitHub committed 3e4eaa917fa
GH-35651: [C++] Don't use self-move with MinGW (#35653) ### Rationale for this change Because MinGW g++ reports a warning: ```text D:/a/arrow/arrow/cpp/src/arrow/util/small_vector_test.cc:417:22: warning: moving 'moved_moved_ints' of type 'arrow::internal::TestSmallStaticVector< arrow::internal::VectorIntLikeParam< arrow::internal::StaticVectorTraits, arrow::MoveOnlyDataType> >::IntVectorType<5>' {aka 'arrow::internal::StaticVectorImpl< arrow::MoveOnlyDataType, 5, arrow::internal::StaticVectorStorage<arrow::MoveOnlyDataType, 5, true> >'} to itself [-Wself-move] 417 | moved_moved_ints = std::move(moved_moved_ints); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/a/arrow/arrow/cpp/src/arrow/util/small_vector_test.cc:417:22: note: remove 'std::move' call ``` ### What changes are included in this PR? Disable self-move code only for MinGW. ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * Closes: #35651 Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Antoine Pitrou <antoine@python.org>