diff options
author | Gaspard Petit <gpetit@eidosmontreal.com> | 2022-05-30 15:04:54 (GMT) |
---|---|---|
committer | Gaspard Petit <gpetit@eidosmontreal.com> | 2022-05-30 15:04:54 (GMT) |
commit | 410e5f9e04609a8dd6b6fc794ce18f060fca35ec (patch) | |
tree | ddd8457a288a15e2229662b6185619786852dcef /googletest/src | |
parent | 9d21db9e0a60a1ea61ec19331c9bc0dd33e907b1 (diff) | |
download | googletest-410e5f9e04609a8dd6b6fc794ce18f060fca35ec.zip googletest-410e5f9e04609a8dd6b6fc794ce18f060fca35ec.tar.gz googletest-410e5f9e04609a8dd6b6fc794ce18f060fca35ec.tar.bz2 |
Fix "unused variable" warning
Fix "unused variable" warning when GTEST_HAS_STREAM_REDIRECTION is set to false in gtest-port.cc
Diffstat (limited to 'googletest/src')
-rw-r--r-- | googletest/src/gtest-port.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/googletest/src/gtest-port.cc b/googletest/src/gtest-port.cc index 73a1115..7cf6d41 100644 --- a/googletest/src/gtest-port.cc +++ b/googletest/src/gtest-port.cc @@ -90,6 +90,7 @@ namespace testing { namespace internal { +#if GTEST_HAS_STREAM_REDIRECTION #if defined(_MSC_VER) || defined(__BORLANDC__) // MSVC and C++Builder do not provide a definition of STDERR_FILENO. const int kStdOutFileno = 1; @@ -98,6 +99,7 @@ const int kStdErrFileno = 2; const int kStdOutFileno = STDOUT_FILENO; const int kStdErrFileno = STDERR_FILENO; #endif // _MSC_VER +#endif // GTEST_HAS_STREAM_REDIRECTION #if GTEST_OS_LINUX || GTEST_OS_GNU_HURD |