Fix "unused variable" warning
Fix "unused variable" warning when GTEST_HAS_STREAM_REDIRECTION is set to false in gtest-port.cc
This commit is contained in:
parent
9d21db9e0a
commit
410e5f9e04
@ -90,6 +90,7 @@
|
|||||||
namespace testing {
|
namespace testing {
|
||||||
namespace internal {
|
namespace internal {
|
||||||
|
|
||||||
|
#if GTEST_HAS_STREAM_REDIRECTION
|
||||||
#if defined(_MSC_VER) || defined(__BORLANDC__)
|
#if defined(_MSC_VER) || defined(__BORLANDC__)
|
||||||
// MSVC and C++Builder do not provide a definition of STDERR_FILENO.
|
// MSVC and C++Builder do not provide a definition of STDERR_FILENO.
|
||||||
const int kStdOutFileno = 1;
|
const int kStdOutFileno = 1;
|
||||||
@ -98,6 +99,7 @@ const int kStdErrFileno = 2;
|
|||||||
const int kStdOutFileno = STDOUT_FILENO;
|
const int kStdOutFileno = STDOUT_FILENO;
|
||||||
const int kStdErrFileno = STDERR_FILENO;
|
const int kStdErrFileno = STDERR_FILENO;
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
#endif // GTEST_HAS_STREAM_REDIRECTION
|
||||||
|
|
||||||
#if GTEST_OS_LINUX || GTEST_OS_GNU_HURD
|
#if GTEST_OS_LINUX || GTEST_OS_GNU_HURD
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user