You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/12/16 04:01:00 UTC

[jira] [Updated] (ARROW-7395) Logical "or" with constants is a Clang warning

     [ https://issues.apache.org/jira/browse/ARROW-7395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

> Logical "or" with constants is a Clang warning
> ----------------------------------------------
>
>                 Key: ARROW-7395
>                 URL: https://issues.apache.org/jira/browse/ARROW-7395
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>    Affects Versions: 0.15.0
>            Reporter: Jim Apple
>            Assignee: Jim Apple
>            Priority: Major
>              Labels: pull-request-available
>
> With clang version 9.0.1, the C++ debug build fails with:
> {noformat}
> In file included from /home/jbapple/code/arrow/cpp/src/arrow/vendored/xxhash/xxhash.h:532:
> /home/jbapple/code/arrow/cpp/src/arrow/vendored/xxhash/xxhash.c:810:11: error: use of logical '||' with constant operand [-Werror,-Wconstant-logical-operand]
>     if (0 || 0) {
>           ^  ~
> /home/jbapple/code/arrow/cpp/src/arrow/vendored/xxhash/xxhash.c:810:11: note: use '|' for a bitwise operation
>     if (0 || 0) {
>           ^~
>           |
> {noformat}
> The simple fix is to add {{-Wno-constant-logical-operand}} to SetupCxxFlags.cmake.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)