[
https://issues.apache.org/jira/browse/ORC-80?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Owen O'Malley updated ORC-80:
-----------------------------
Assignee: Deepak Majeti
> 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
> Assignee: Deepak Majeti
> Fix For: 1.2.0
>
>
> 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)