orc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject [1/2] orc git commit: ORC-80. C++ build breaks due to warnings with gcc-4.9
Date Sat, 09 Jul 2016 04:25:17 GMT
Repository: orc
Updated Branches:
  refs/heads/master 8226f23cf -> 24bf8e528


ORC-80. C++ build breaks due to warnings with gcc-4.9

Fixes #46.

Signed-off-by: Owen O'Malley <omalley@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/orc/repo
Commit: http://git-wip-us.apache.org/repos/asf/orc/commit/2356c7cb
Tree: http://git-wip-us.apache.org/repos/asf/orc/tree/2356c7cb
Diff: http://git-wip-us.apache.org/repos/asf/orc/diff/2356c7cb

Branch: refs/heads/master
Commit: 2356c7cb049659598a47aabb6cb7cc82feef4733
Parents: 8226f23
Author: Deepak Majeti <deepak.majeti@hpe.com>
Authored: Wed Jul 6 17:03:32 2016 -0400
Committer: Owen O'Malley <omalley@apache.org>
Committed: Fri Jul 8 21:24:04 2016 -0700

----------------------------------------------------------------------
 tools/test/ToolTest.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/orc/blob/2356c7cb/tools/test/ToolTest.cc
----------------------------------------------------------------------
diff --git a/tools/test/ToolTest.cc b/tools/test/ToolTest.cc
index 3a90c06..8695a9f 100644
--- a/tools/test/ToolTest.cc
+++ b/tools/test/ToolTest.cc
@@ -115,7 +115,7 @@ int runProgram(const std::vector<std::string>& command,
     argv[command.size()] = 0;
 
     // do the stdout & stderr redirection
-    int stdoutFd = open(stdoutName, O_WRONLY | O_CREAT | O_TRUNC);
+    int stdoutFd = open(stdoutName, O_WRONLY | O_CREAT | O_TRUNC, 0644);
     if (stdoutFd == -1) {
       std::cerr << "Failed to open " << stdoutName << " - "
                 << strerror(errno) << "\n";
@@ -126,7 +126,7 @@ int runProgram(const std::vector<std::string>& command,
       exit(1);
     }
     close(stdoutFd);
-    int stderrFd = open(stderrName, O_WRONLY | O_CREAT | O_TRUNC);
+    int stderrFd = open(stderrName, O_WRONLY | O_CREAT | O_TRUNC, 0644);
     if (stderrFd == -1) {
       std::cerr << "Failed to open " << stderrName << " - "
                 << strerror(errno) << "\n";
@@ -163,7 +163,7 @@ int runProgram(const std::vector<std::string>& command,
     if (result == -1) {
       std::cerr << "Error: " << strerror(errno) << "\n";
     } else if (WIFSIGNALED(status)) {
-      std::cerr << "Fatal signal: " << WTERMSIG(signal) << "\n";
+      std::cerr << "Fatal signal: " << WTERMSIG(status) << "\n";
     }
     exit(1);
   }


Mime
View raw message