Wes McKinney created ARROW-8951: ----------------------------------- Summary: [C++] Fix compiler warning in compute/kernels/scalar_cast_temporal.cc Key: ARROW-8951 URL: https://issues.apache.org/jira/browse/ARROW-8951 Project: Apache Arrow Issue Type: Bug Components: C++ Reporter: Wes McKinney Fix For: 1.0.0
The kernel functor can return an uninitialized value on errors {code} ../src/arrow/compute/kernels/scalar_cast_temporal.cc: In member function ‘OUT arrow::compute::internal::ParseTimestamp::Call(arrow::compute::KernelContext*, ARG0) const [with OUT = long int; ARG0 = nonstd::sv_lite::basic_string_view<char>]’: ../src/arrow/compute/kernels/scalar_cast_temporal.cc:267:12: warning: ‘result’ may be used uninitialized in this function [-Wmaybe-uninitialized] return result; {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)