mirror of
https://github.com/google/googletest.git
synced 2025-12-10 09:18:34 +08:00
Makes gtest compile without warning with gcc 4.0.3 and -Wall -Wextra.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user