Fix warnings/errors on MSVC (#753)

* Fix warnings/errors on MSVC
1. update googletest to tag release-1.11.0 to make googletest and
   googlemock compile on MSVC2022.
2. set gtest_force_shared_crt to ON in test cmake project to make tests
   compile on MSVC.
3. add /wd4251 and /wd4275 to MSVC compile flags to ignore DLL related
   warnings for class exports.
4. fix some other warnings and errors while compiling on MSVC2022.
This commit is contained in:
Soar Qin authored and GitHub committed 2022-06-11 18:45:34 +03:00
1 parent 0b29fec63c
commit c87df8e704
9 files changed
+60 -54

No files matched your search

+1 -1
View File
@@ -256,7 +256,7 @@ namespace ERM
//script line
typedef boost::variant<TVExp, TERMline> TLine;
template <typename T> class ERM_grammar;
template <typename T> struct ERM_grammar;
}
struct LineInfo
+1 -1
View File
@@ -12,7 +12,7 @@
#include "../LuaWrapper.h"
class Bonus;
struct Bonus;
class BonusList;
class IBonusBearer;