1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

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
2022-06-11 23:45:34 +08:00
committed by GitHub
parent 0b29fec63c
commit c87df8e704
9 changed files with 60 additions and 54 deletions

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