Makes gtest compile without warning with gcc 4.0.3 and -Wall -Wextra.

This commit is contained in:
zhanyong.wan
2009-03-25 03:55:18 +00:00
parent 2c0fc6d415
commit f3c6efd8d7
4 changed files with 11 additions and 10 deletions

View File

@@ -945,7 +945,7 @@ bool StackGrowsDown() {
// wrong.
static pid_t ExecDeathTestFork(char* const* argv, int close_fd) {
ExecDeathTestArgs args = { argv, close_fd };
pid_t child_pid;
pid_t child_pid = -1;
#if GTEST_HAS_CLONE
const bool use_fork = GTEST_FLAG(death_test_use_fork);