Merge pull request #7411 from minggo/warning-fix

fix warnings
Fix the tests-lua crash on windows platform
Merge branch 'v3' of https://github.com/cocos2d/cocos2d-x into v3_hot_fix
Merge pull request #7414 from samuele3hu/v3_hot_fix

Fix the tests-lua crash on windows platform