summaryrefslogtreecommitdiffstats
path: root/googletest/include
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2023-03-07 18:39:52 (GMT)
committerCopybara-Service <copybara-worker@google.com>2023-03-07 18:40:39 (GMT)
commitcf4f4400db41a70b87df127aee20fe802dae5520 (patch)
treef23d3eb5bfe2f0683ac0c63590490f43875032e3 /googletest/include
parent1a727c27aa36c602b24bf170a301aec8686b88e8 (diff)
downloadgoogletest-cf4f4400db41a70b87df127aee20fe802dae5520.zip
googletest-cf4f4400db41a70b87df127aee20fe802dae5520.tar.gz
googletest-cf4f4400db41a70b87df127aee20fe802dae5520.tar.bz2
Suppress std::string DLL interface warning introduced in commit f063cd25c90cbd4089a0ff96f5991df4f2721338
Fixes #4171 PiperOrigin-RevId: 514777144 Change-Id: I6f4b309c407684522fc1bc94dcc980ea1fe09cd9
Diffstat (limited to 'googletest/include')
-rw-r--r--googletest/include/gtest/internal/gtest-port.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/googletest/include/gtest/internal/gtest-port.h b/googletest/include/gtest/internal/gtest-port.h
index 7253360..0160fad 100644
--- a/googletest/include/gtest/internal/gtest-port.h
+++ b/googletest/include/gtest/internal/gtest-port.h
@@ -960,6 +960,8 @@ class GTEST_API_ RE {
};
#elif defined(GTEST_USES_POSIX_RE) || defined(GTEST_USES_SIMPLE_RE)
+GTEST_DISABLE_MSC_WARNINGS_PUSH_(4251 \
+/* class A needs to have dll-interface to be used by clients of class B */)
// A simple C++ wrapper for <regex.h>. It uses the POSIX Extended
// Regular Expression syntax.
@@ -1008,7 +1010,7 @@ class GTEST_API_ RE {
#endif
};
-
+GTEST_DISABLE_MSC_WARNINGS_POP_() // 4251
#endif // ::testing::internal::RE implementation
// Formats a source file path and a line number as they would appear