1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +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

@ -12,7 +12,7 @@
#include "../LuaWrapper.h"
class Bonus;
struct Bonus;
class BonusList;
class IBonusBearer;