From 8bd34c537990b0be7fa0b80703c7afe8153758a6 Mon Sep 17 00:00:00 2001 From: Jonathan Sternberg Date: Sat, 5 Nov 2011 15:58:51 -0400 Subject: [PATCH] Added a cast to NULL to remove a warning issues by g++ 4.6. --- src/subprocess.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.7.4