aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorkosak <kosak@google.com>2014-11-17 02:56:14 +0000
committerkosak <kosak@google.com>2014-11-17 02:56:14 +0000
commit102b50483a4b515a94a5b1c75db468eb071cf172 (patch)
treecc5af62a7925b5645d1abb42204a7d2e4601534f /include
parent40be033887b7728d70d47adce581a971371ee705 (diff)
downloadgoogletest-102b50483a4b515a94a5b1c75db468eb071cf172.tar.gz
googletest-102b50483a4b515a94a5b1c75db468eb071cf172.tar.bz2
googletest-102b50483a4b515a94a5b1c75db468eb071cf172.zip
Noop changes to suppress compile-time warnings in WINDOWS code paths.
Diffstat (limited to 'include')
-rw-r--r--include/gtest/internal/gtest-port.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/gtest/internal/gtest-port.h b/include/gtest/internal/gtest-port.h
index 60092472..d8f22c25 100644
--- a/include/gtest/internal/gtest-port.h
+++ b/include/gtest/internal/gtest-port.h
@@ -2317,6 +2317,7 @@ inline const char* StrError(int errnum) { return strerror(errnum); }
inline const char* GetEnv(const char* name) {
#if GTEST_OS_WINDOWS_MOBILE || GTEST_OS_WINDOWS_PHONE | GTEST_OS_WINDOWS_RT
// We are on Windows CE, which has no environment variables.
+ static_cast<void>(name); // To prevent 'unused argument' warning.
return NULL;
#elif defined(__BORLANDC__) || defined(__SunOS_5_8) || defined(__SunOS_5_9)
// Environment variables which we programmatically clear will be set to the