summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Calabrese <calabrese@x.team>2019-12-13 16:34:59 (GMT)
committerMatt Calabrese <calabrese@x.team>2019-12-13 16:34:59 (GMT)
commit2ba222fcc5bc0bb640ccd3131356b7aac93c8bb7 (patch)
treeafd922b68f48aacba48d243f9a4727d93bf462f5
parent9a976a74c97652d7e68ebcce636a317e5fd70f7c (diff)
parentecefcbd4aa714053befb6a5415cf2640181414ce (diff)
downloadgoogletest-2ba222fcc5bc0bb640ccd3131356b7aac93c8bb7.zip
googletest-2ba222fcc5bc0bb640ccd3131356b7aac93c8bb7.tar.gz
googletest-2ba222fcc5bc0bb640ccd3131356b7aac93c8bb7.tar.bz2
Merge pull request #2595 from kuzkry:remove-workaround_msvc-warning-4355
PiperOrigin-RevId: 284234675
-rw-r--r--googlemock/include/gmock/gmock-spec-builders.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/googlemock/include/gmock/gmock-spec-builders.h b/googlemock/include/gmock/gmock-spec-builders.h
index 80c13b5..718c948 100644
--- a/googlemock/include/gmock/gmock-spec-builders.h
+++ b/googlemock/include/gmock/gmock-spec-builders.h
@@ -1350,12 +1350,6 @@ class ReferenceOrValueWrapper<T&> {
T* value_ptr_;
};
-// MSVC warns about using 'this' in base member initializer list, so
-// we need to temporarily disable the warning. We have to do it for
-// the entire class to suppress the warning, even though it's about
-// the constructor only.
-GTEST_DISABLE_MSC_WARNINGS_PUSH_(4355)
-
// C++ treats the void type specially. For example, you cannot define
// a void-typed variable or pass a void value to a function.
// ActionResultHolder<T> holds a value of type T, where T must be a
@@ -1786,8 +1780,6 @@ class FunctionMocker<R(Args...)> final : public UntypedFunctionMockerBase {
}
}; // class FunctionMocker
-GTEST_DISABLE_MSC_WARNINGS_POP_() // 4355
-
// Reports an uninteresting call (whose description is in msg) in the
// manner specified by 'reaction'.
void ReportUninterestingCall(CallReaction reaction, const std::string& msg);