Skip to content

Commit

Permalink
Remove redundant declaration
Browse files Browse the repository at this point in the history
TempDir() function is declared twice, once in `internal/gtest-port.h`
and a second time in `gtest.h`.

Fixes a warning with GCC when -Wredundant-decls is given.
  • Loading branch information
bkircher committed Sep 16, 2017
1 parent deace25 commit d4af64c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions googletest/include/gtest/internal/gtest-port.h
Expand Up @@ -2591,10 +2591,6 @@ std::string StringFromGTestEnv(const char* flag, const char* default_val);

} // namespace internal

// Returns a path to temporary directory.
// Tries to determine an appropriate directory for the platform.
GTEST_API_ std::string TempDir();

} // namespace testing

#endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_

0 comments on commit d4af64c

Please sign in to comment.