Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
6.0.0
Description
Looks like this option isn't supported by gcc (it is supported by Clang) and only triggers when there's an existing warning, which we get due to getting some maybe uninitialized warnings.
/home/keith/git/arrow/cpp/src/arrow/tensor.cc: In member function 'arrow::Result<long int> arrow::Tensor::CountNonZero() const': /home/keith/git/arrow/cpp/src/arrow/tensor.cc:337:18: warning: '*((void*)& counter +8)' may be used uninitialized in this function [-Wmaybe-uninitialized] 337 | NonZeroCounter counter(*this); | ^~~~~~~ At global scope: cc1plus: warning: unrecognized command line option '-Wno-unknown-warning-option'
These 2 lines likely just need to be deleted: https://github.com/apache/arrow/blob/master/cpp/cmake_modules/SetupCxxFlags.cmake#L346-L347
Attachments
Issue Links
- links to