You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2021/08/02 14:27:00 UTC
[jira] [Resolved] (ARROW-13500) [C++] warning: unrecognized command
line option '-Wno-unknown-warning-option' when building with gcc 9.3
[ https://issues.apache.org/jira/browse/ARROW-13500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antoine Pitrou resolved ARROW-13500.
------------------------------------
Resolution: Fixed
Issue resolved by pull request 10834
[https://github.com/apache/arrow/pull/10834]
> [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
> Assignee: Keith Kraus
> Priority: Trivial
> Labels: pull-request-available
> Fix For: 6.0.0
>
> Time Spent: 0.5h
> 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)