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

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   
https://github.com/apache/arrow/actions/runs/5430048162/jobs/9875509422#step:10:188
   
   ```text
   In file included from ../../c_glib/arrow-glib/compute.cpp:28:
   ../../c_glib/arrow-glib/error.hpp: In instantiation of 'gboolean 
garrow::check(GError**, const arrow::Status&, CONTEXT_FUNC&&) [with 
CONTEXT_FUNC = garrow_array_cast(GArrowArray*, GArrowDataType*, 
GArrowCastOptions*, GError**)::<lambda()>&; gboolean = int; GError = _GError]':
   ../../c_glib/arrow-glib/error.hpp:71:17:   required from 'gboolean 
garrow::check(GError**, const arrow::Result<T>&, CONTEXT_FUNC&&) [with TYPE = 
std::shared_ptr<arrow::Array>; CONTEXT_FUNC = garrow_array_cast(GArrowArray*, 
GArrowDataType*, GArrowCastOptions*, GError**)::<lambda()>; gboolean = int; 
GError = _GError]'
   ../../c_glib/arrow-glib/compute.cpp:4707:20:   required from here
   ../../c_glib/arrow-glib/error.hpp:49:19: warning: moving a temporary object 
prevents copy elision [-Wpessimizing-move]
      49 |       std::string context = std::move(context_func());
         |                   ^~~~~~~
   ../../c_glib/arrow-glib/error.hpp:49:19: note: remove 'std::move' call
   ../../c_glib/arrow-glib/error.hpp: In instantiation of 'gboolean 
garrow::check(GError**, const arrow::Status&, CONTEXT_FUNC&&) [with 
CONTEXT_FUNC = garrow_array_unique(GArrowArray*, GError**)::<lambda()>&; 
gboolean = int; GError = _GError]':
   ../../c_glib/arrow-glib/error.hpp:71:17:   required from 'gboolean 
garrow::check(GError**, const arrow::Result<T>&, CONTEXT_FUNC&&) [with TYPE = 
std::shared_ptr<arrow::Array>; CONTEXT_FUNC = garrow_array_unique(GArrowArray*, 
GError**)::<lambda()>; gboolean = int; GError = _GError]'
   ../../c_glib/arrow-glib/compute.cpp:4740:20:   required from here
   ../../c_glib/arrow-glib/error.hpp:49:19: warning: moving a temporary object 
prevents copy elision [-Wpessimizing-move]
   ../../c_glib/arrow-glib/error.hpp:49:19: note: remove 'std::move' call
   ../../c_glib/arrow-glib/error.hpp: In instantiation of 'gboolean 
garrow::check(GError**, const arrow::Status&, CONTEXT_FUNC&&) [with 
CONTEXT_FUNC = garrow_array_dictionary_encode(GArrowArray*, 
GError**)::<lambda()>&; gboolean = int; GError = _GError]':
   ../../c_glib/arrow-glib/error.hpp:71:17:   required from 'gboolean 
garrow::check(GError**, const arrow::Result<T>&, CONTEXT_FUNC&&) [with TYPE = 
arrow::Datum; CONTEXT_FUNC = garrow_array_dictionary_encode(GArrowArray*, 
GError**)::<lambda()>; gboolean = int; GError = _GError]'
   ../../c_glib/arrow-glib/compute.cpp:4773:20:   required from here
   ../../c_glib/arrow-glib/error.hpp:49:19: warning: moving a temporary object 
prevents copy elision [-Wpessimizing-move]
   ../../c_glib/arrow-glib/error.hpp:49:19: note: remove 'std::move' call
   ```
   
   ### Component(s)
   
   GLib


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to