[
https://issues.apache.org/jira/browse/ARROW-13500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Neal Richardson updated ARROW-13500:
------------------------------------
Summary: [C++] warning: unrecognized command line option
'-Wno-unknown-warning-option' when building with gcc 9.3 (was: warning:
unrecognized command line option '-Wno-unknown-warning-option' when building
with gcc 9.3)
> [C++] warning: unrecognized command line option '-Wno-unknown-warning-option'
> when building with gcc 9.3
> --------------------------------------------------------------------------------------------------------
>
> Key: ARROW-13500
> URL: https://issues.apache.org/jira/browse/ARROW-13500
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Affects Versions: 6.0.0
> Reporter: Keith Kraus
> Priority: Trivial
> Labels: pull-request-available
> Fix For: 6.0.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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.
> {code:none}
> /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'
> {code}
> These 2 lines likely just need to be deleted:
> https://github.com/apache/arrow/blob/master/cpp/cmake_modules/SetupCxxFlags.cmake#L346-L347
--
This message was sent by Atlassian Jira
(v8.3.4#803005)