Core/Battlefield/WG: fixed warnings

Ref #13169
Closes #12714