[
https://issues.apache.org/jira/browse/ORC-80?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15365077#comment-15365077
]
ASF GitHub Bot commented on ORC-80:
-----------------------------------
GitHub user majetideepak opened a pull request:
https://github.com/apache/orc/pull/46
ORC-80:C++ build breaks due to warnings with gcc-4.9
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/majetideepak/orc ORC-80
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/orc/pull/46.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #46
----
commit 281ef817e01d8d7cea1d0f5c7ede73fc08a2a2b4
Author: Deepak Majeti <[email protected]>
Date: 2016-07-06T21:03:32Z
ORC-80:C++ build breaks due to warnings with gcc-4.9
----
> 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)