You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@orc.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2021/11/01 23:20:00 UTC

[jira] [Resolved] (ORC-1042) Ignore unused-function C++ compile warning on CentOS 7

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

Dongjoon Hyun resolved ORC-1042.
--------------------------------
    Fix Version/s: 1.6.12
                   1.7.1
         Assignee: Dongjoon Hyun
       Resolution: Fixed

This is resolved via https://github.com/apache/orc/pull/956

> Ignore unused-function C++ compile warning on CentOS 7
> ------------------------------------------------------
>
>                 Key: ORC-1042
>                 URL: https://issues.apache.org/jira/browse/ORC-1042
>             Project: ORC
>          Issue Type: Test
>          Components: C++
>    Affects Versions: 1.8.0, 1.7.1, 1.6.12
>            Reporter: Dongjoon Hyun
>            Assignee: Dongjoon Hyun
>            Priority: Major
>             Fix For: 1.7.1, 1.6.12
>
>
> {code}
> Started apache/main on centos7 at Mon Nov  1 10:20:20 AM PDT 2021
> Cloning into 'orc'...
> -- The C compiler identification is GNU 4.8.5
> -- The CXX compiler identification is GNU 4.8.5
> ...
> [ 39%] Building CXX object c++/src/CMakeFiles/orc.dir/io/InputStream.cc.o
> In file included from /root/orc/c++/src/io/InputStream.hh:22:0,
>                  from /root/orc/c++/src/io/InputStream.cc:20:
> /root/orc/build/c++/src/Adaptor.hh:188:15: error: 'bool orc::multiplyExact(int64_t, int64_t, int64_t*)' defined but not used [-Werror=unused-function]
>    static bool multiplyExact(int64_t value, int64_t repetitions, int64_t* result) {
>                ^
> /root/orc/build/c++/src/Adaptor.hh:200:15: error: 'bool orc::addExact(int64_t, int64_t, int64_t*)' defined but not used [-Werror=unused-function]
>    static bool addExact(int64_t sum, int64_t increment, int64_t* result) {
>                ^
> cc1plus: all warnings being treated as errors
> make[2]: *** [c++/src/CMakeFiles/orc.dir/io/InputStream.cc.o] Error 1
> make[1]: *** [c++/src/CMakeFiles/orc.dir/all] Error 2
> make: *** [all] Error 2
> FAILED centos7
> {code}



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