You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/07/29 23:13:00 UTC

[jira] [Updated] (ARROW-13500) 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 ]

ASF GitHub Bot updated ARROW-13500:
-----------------------------------
    Labels: pull-request-available  (was: )

> 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: 10m
>  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)