diff options
author | Gennadiy Civil <gennadiycivil@users.noreply.github.com> | 2018-02-22 17:37:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-22 17:37:41 -0500 |
commit | a490fb7a9a00d62e03d84e85e3e07ed127a21ef8 (patch) | |
tree | d54017cfd2fcb8427ad30c28b29eeee2f80aed59 | |
parent | 32e62da22a1b06ebe83e0fa0e4f0c0537b1d752a (diff) | |
parent | ac138b688537741de0de6a448399163a59f0e36f (diff) | |
download | googletest-a490fb7a9a00d62e03d84e85e3e07ed127a21ef8.tar.gz googletest-a490fb7a9a00d62e03d84e85e3e07ed127a21ef8.tar.bz2 googletest-a490fb7a9a00d62e03d84e85e3e07ed127a21ef8.zip |
Merge pull request #1466 from pwnall/fix-death-warn
Fix unused function warning on Mac OS.
-rw-r--r-- | googletest/src/gtest-death-test.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/googletest/src/gtest-death-test.cc b/googletest/src/gtest-death-test.cc index 92a29806..852912b5 100644 --- a/googletest/src/gtest-death-test.cc +++ b/googletest/src/gtest-death-test.cc @@ -983,6 +983,7 @@ static int ExecDeathTestChildMain(void* child_arg) { } # endif // !GTEST_OS_QNX +# if GTEST_HAS_CLONE // Two utility routines that together determine the direction the stack // grows. // This could be accomplished more elegantly by a single recursive @@ -1007,6 +1008,7 @@ static bool StackGrowsDown() { StackLowerThanAddress(&dummy, &result); return result; } +# endif // GTEST_HAS_CLONE // Spawns a child process with the same executable as the current process in // a thread-safe manner and instructs it to run the death test. The |