summaryrefslogtreecommitdiffstats
path: root/src/subprocess.cc
diff options
context:
space:
mode:
authorJonathan Sternberg <jonathansternberg@gmail.com>2011-11-05 19:58:51 (GMT)
committerJonathan Sternberg <jonathansternberg@gmail.com>2011-11-05 19:58:51 (GMT)
commit8bd34c537990b0be7fa0b80703c7afe8153758a6 (patch)
tree2f8649b51484a7cfde09fc3a3509ea5c592c484b /src/subprocess.cc
parentafbe2185a3bbd2453d6b1c27ee8f7c1cce6371a3 (diff)
downloadNinja-8bd34c537990b0be7fa0b80703c7afe8153758a6.zip
Ninja-8bd34c537990b0be7fa0b80703c7afe8153758a6.tar.gz
Ninja-8bd34c537990b0be7fa0b80703c7afe8153758a6.tar.bz2
Added a cast to NULL to remove a warning issues by g++ 4.6.
Diffstat (limited to 'src/subprocess.cc')
-rw-r--r--src/subprocess.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/subprocess.cc b/src/subprocess.cc
index 4426da0..a27b087 100644
--- a/src/subprocess.cc
+++ b/src/subprocess.cc
@@ -69,7 +69,7 @@ bool Subprocess::Start(SubprocessSet* set, const string& command) {
error_pipe = 2;
close(output_pipe[1]);
- execl("/bin/sh", "/bin/sh", "-c", command.c_str(), NULL);
+ execl("/bin/sh", "/bin/sh", "-c", command.c_str(), (char *) NULL);
} while (false);
// If we get here, something went wrong; the execl should have