You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@orc.apache.org by "Deepak Majeti (JIRA)" <ji...@apache.org> on 2016/07/06 20:56:11 UTC

[jira] [Created] (ORC-80) C++ build breaks due to warnings with gcc-4.9

Deepak Majeti created ORC-80:
--------------------------------

             Summary: C++ build breaks due to warnings with gcc-4.9
                 Key: ORC-80
                 URL: https://issues.apache.org/jira/browse/ORC-80
             Project: Orc
          Issue Type: Bug
            Reporter: Deepak Majeti


The newly added ToolTest.cc is throwing the below warnings 

orc/tools/test/ToolTest.cc: In function ‘int runProgram(const std::vector<std::basic_string<char> >&, std::string&, std::string&)’:
/orc/tools/test/ToolTest.cc:166:60: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
       std::cerr << "Fatal signal: " << WTERMSIG(signal) << "\n";
                                                            ^
In file included from /usr/include/fcntl.h:279:0,
                 from /orc-cpp/orc/tools/test/ToolTest.cc:28:
In function ‘int open(const char*, int, ...)’,
    inlined from ‘int runProgram(const std::vector<std::basic_string<char> >&, std::string&, std::string&)’ at /orc/tools/test/ToolTest.cc:118:54:
/usr/include/x86_64-linux-gnu/bits/fcntl2.h:50:26: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
    __open_missing_mode ();
                          ^
In function ‘int open(const char*, int, ...)’,
    inlined from ‘int runProgram(const std::vector<std::basic_string<char> >&, std::string&, std::string&)’ at /orc/tools/test/ToolTest.cc:129:54:
/usr/include/x86_64-linux-gnu/bits/fcntl2.h:50:26: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
    __open_missing_mode ();
                          ^



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)