diff options
author | Victor Costan <costan@gmail.com> | 2018-02-19 09:56:53 (GMT) |
---|---|---|
committer | Victor Costan <costan@gmail.com> | 2018-02-19 10:02:59 (GMT) |
commit | 8a6158717bc1587a26e6134179eb9e2a9f1c2185 (patch) | |
tree | 7c34edb95366100d41465977b05fd205621bbd68 /googletest/src | |
parent | 3f0cf6b62ad1eb50d8736538363d3580dd640c3e (diff) | |
download | googletest-8a6158717bc1587a26e6134179eb9e2a9f1c2185.zip googletest-8a6158717bc1587a26e6134179eb9e2a9f1c2185.tar.gz googletest-8a6158717bc1587a26e6134179eb9e2a9f1c2185.tar.bz2 |
Fix unused function warning on Mac OS.
As of recently, Google Test fails to compile with the warning below when
used in projects with strict warning settings.
googletest/src/gtest-death-test.cc:1004:13: error: unused function 'StackGrowsDown' [-Werror,-Wunused-function]
Diffstat (limited to 'googletest/src')
-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 92a2980..852912b 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 |