You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "kou (via GitHub)" <gi...@apache.org> on 2023/05/17 20:41:52 UTC

[GitHub] [arrow] kou opened a new issue, #35651: [C++] util/small_vector_test.cc reports a self-move warning with MinGW

kou opened a new issue, #35651:
URL: https://github.com/apache/arrow/issues/35651

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   https://github.com/apache/arrow/actions/runs/5006155150/jobs/8971042580#step:7:1154
   
   ```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
   ```
   
   ### Component(s)
   
   C++


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] pitrou closed issue #35651: [C++] util/small_vector_test.cc reports a self-move warning with MinGW

Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou closed issue #35651: [C++] util/small_vector_test.cc reports a self-move warning with MinGW
URL: https://github.com/apache/arrow/issues/35651


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] zhjwpku commented on issue #35651: [C++] util/small_vector_test.cc reports a self-move warning with MinGW

Posted by "zhjwpku (via GitHub)" <gi...@apache.org>.
zhjwpku commented on issue #35651:
URL: https://github.com/apache/arrow/issues/35651#issuecomment-1609663382

   I got the same error on macos with gcc 13.1
   
   /Users/zhjwpku/zhjwpku/arrow/cpp/src/arrow/util/small_vector_test.cc:418:22: error: moving 'moved_moved_ints' of type 'arrow::internal::TestSmallStaticVector<arrow::internal::VectorIntLikeParam<arrow::internal::SmallVectorTraits, arrow::MoveOnlyDataType> >::IntVectorType<5>' {aka 'arrow::internal::StaticVectorImpl<arrow::MoveOnlyDataType, 5, arrow::internal::SmallVectorStorage<arrow::MoveOnlyDataType, 5> >'} to itself [-Werror=self-move]
   /Users/zhjwpku/zhjwpku/arrow/cpp/src/arrow/util/small_vector_test.cc:418:22: note: remove 'std::move' call
   
   I checked the [GCC 13 Release note](https://gcc.gnu.org/gcc-13/changes.html), this is a newly added warning, I guess the warning with MinGW might be using
   gcc 13 too.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org