peteralto
Member
- Joined
- Nov 1, 2020
- Messages
- 93
- Solutions
- 1
- Reaction score
- 17
I'm getting some warnings during the compilation, one of them is described in the title, but the information follows:
The first warning would be on this line:
The others to that:
Someone with knowledge of C++ would be able to tell what is wrong, if there is something that can be replaced in this case I would appreciate the help.
Thanks.
C++:
1>C:\src\game.cpp(4642,29): warning C4804: '>': unsafe use of type 'bool' in operation
1>C:\src\game.cpp(5084,184): warning C4100: 'ipBanishment': unreferenced formal parameter
1>C:\src\game.cpp(5084,166): warning C4100: 'statementId': unreferenced formal parameter
1>C:\src\game.cpp(5084,105): warning C4100: 'action': unreferenced formal parameter
1>C:\src\game.cpp(5084,79): warning C4100: 'reason': unreferenced formal parameter
1>C:\src\game.cpp(5084,43): warning C4100: 'playerId': unreferenced formal parameter
The first warning would be on this line:
C++:
if (!player->getAccountType() > ACCOUNT_TYPE_NORMAL)
return false;
The others to that:
C++:
bool Game::playerViolationWindow(uint32_t playerId, std::string name, uint8_t reason, ViolationAction_t action, std::string comment, std::string statement, uint32_t statementId, bool ipBanishment)
{
return true;
}
Someone with knowledge of C++ would be able to tell what is wrong, if there is something that can be replaced in this case I would appreciate the help.
Thanks.