pitrou commented on pull request #12537:
URL: https://github.com/apache/arrow/pull/12537#issuecomment-1077334837
I get the following warning when compiling the benchmarks:
```
[241/415] Building CXX object
src/arrow/util/CMakeFiles/arrow-small-vector-benchmark.dir/small_vector_benchmark.cc.o
/home/antoine/arrow/dev/cpp/src/arrow/util/small_vector_benchmark.cc:70:37:
warning: address of stack memory associated with parameter 'v' returned
[-Wreturn-stack-address]
return reinterpret_cast<intptr_t>(v.data());
^
/home/antoine/arrow/dev/cpp/src/arrow/util/small_vector_benchmark.cc:119:16:
note: in instantiation of function template specialization
'arrow::internal::ConsumeVector<std::vector<int>>' requested here
dummy += ConsumeVector(vec);
^
/home/antoine/arrow/dev/cpp/src/arrow/util/small_vector_benchmark.cc:325:1:
note: in instantiation of function template specialization
'arrow::internal::CopyEmptyVector<std::vector<int>>' requested here
SHORT_VECTOR_BENCHMARKS(STD_VECTOR);
^
/home/antoine/arrow/dev/cpp/src/arrow/util/small_vector_benchmark.cc:287:22:
note: expanded from macro 'SHORT_VECTOR_BENCHMARKS'
BENCHMARK_TEMPLATE(CopyEmptyVector, VEC_TYPE_FACTORY(int));
\
^
```
--
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]