[PATCH] D56329: Fix some warnings on MSVC
Reid Kleckner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 15 15:26:55 PST 2019
rnk added a comment.
Non gmock changes look good.
================
Comment at: utils/unittest/googlemock/include/gmock/gmock-matchers.h:145-148
+ // Define virtual destructor to avoid the following MSVC warning:
+ // warning C5046: 'testing::MatcherInterface<T>::~MatcherInterface':
+ // Symbol involving type with internal linkage not defined
+ virtual ~MatcherInterface() {}
----------------
C5046 seems like some kind of undocumented warning:
https://developercommunity.visualstudio.com/content/problem/288509/undocumented-warning-c5046-symbol-involving-type-w.html
Maybe it will go away in new versions of VS if we do nothing? I don't see anything wrong with this code. It has an implicit virtual destructor because its base class has one.
I guess I'd like to hear more about how this comes up in practice before applying this change, especially since it's imported gmock code.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56329/new/
https://reviews.llvm.org/D56329
More information about the llvm-commits
mailing list