Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-1042

Ignore unused-function C++ compile warning on CentOS 7

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7.1, 1.6.12
    • 1.7.1, 1.6.12
    • C++
    • None

    Description

      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
      

      Attachments

        Issue Links

          Activity

            People

              dongjoon Dongjoon Hyun
              dongjoon Dongjoon Hyun
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: