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

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   
https://github.com/apache/arrow/actions/runs/4445709965/jobs/7805154277?pr=34601#step:9:128
   
   ```text
   FAILED: arrow-glib/libarrow-glib.1200.dylib.p/basic-data-type.cpp.o 
   ccache c++ -Iarrow-glib/libarrow-glib.1200.dylib.p -Iarrow-glib 
-I../../c_glib/arrow-glib -I. -I../../c_glib -I/usr/local/include 
-I/usr/local/Cellar/glib/2.76.0/include 
-I/usr/local/Cellar/glib/2.76.0/include/glib-2.0 
-I/usr/local/Cellar/glib/2.76.0/lib/glib-2.0/include 
-I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre2/10.42/include 
-I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/ffi 
-fcolor-diagnostics -Wall -Winvalid-pch -Werror -std=c++17 -O0 -g 
-Wmissing-declarations -DARROW_NO_DEPRECATED_API -MD -MQ 
arrow-glib/libarrow-glib.1200.dylib.p/basic-data-type.cpp.o -MF 
arrow-glib/libarrow-glib.1200.dylib.p/basic-data-type.cpp.o.d -o 
arrow-glib/libarrow-glib.1200.dylib.p/basic-data-type.cpp.o -c 
../../c_glib/arrow-glib/basic-data-type.cpp
   ../../c_glib/arrow-glib/basic-data-type.cpp:300:19: error: object backing 
the pointer will be destroyed at the end of the full-expression 
[-Werror,-Wdangling-gsl]
     return g_strdup(arrow_data_type->ToString().c_str());
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   /usr/local/Cellar/glib/2.76.0/include/glib-2.0/glib/gstrfuncs.h:211:38: 
note: expanded from macro 'g_strdup'
           const char *const ___str = ((STR));                                  
 \
                                        ^~~
   ../../c_glib/arrow-glib/basic-data-type.cpp:300:10: error: object backing 
the pointer will be destroyed at the end of the full-expression 
[-Werror,-Wdangling-gsl]
     return g_strdup(arrow_data_type->ToString().c_str());
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   /usr/local/Cellar/glib/2.76.0/include/glib-2.0/glib/gstrfuncs.h:212:51: 
note: expanded from macro 'g_strdup'
           const char *const __str = _G_STR_NONNULL (___str);                   
 \
                                                     ^~~~~~
   /usr/local/Cellar/glib/2.76.0/include/glib-2.0/glib/gstrfuncs.h:157:29: 
note: expanded from macro '_G_STR_NONNULL'
   #define _G_STR_NONNULL(x) ((x) + !(x))
                               ^
   ```
   
   ### 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