more warning fixes

This commit is contained in:
DarthArgus
2015-10-14 21:35:04 -05:00
parent 6b1c89032f
commit f71f036f7b
2 changed files with 3 additions and 3 deletions
@@ -1851,7 +1851,7 @@ void ChatInterface::OnReceiveForcedLogout(const ChatAvatar *oldAvatar)
ChatServer::fileLog(false, "ChatInterface", "OnReceiveForcedLogout() oldAvatar(%s)", ChatServer::getFullChatAvatarName(oldAvatar).c_str());
PROFILER_AUTO_BLOCK_DEFINE("ChatInterface - OnReceiveForcedLogout");
if ((oldAvatar == NULL))
if (oldAvatar == NULL)
{
DEBUG_WARNING(true, ("We received an OnReceiveForcedLogout with a success result code but NULL data. This is an error that the API should never give."));
return;
@@ -2877,7 +2877,7 @@ void ChatInterface::OnReceivePersistentMessage(const ChatAvatar *destAvatar, con
ChatServer::fileLog(false, "ChatInterface", "OnReceivePersistentMessage() destAvatar(%s)", ChatServer::getFullChatAvatarName(destAvatar).c_str());
PROFILER_AUTO_BLOCK_DEFINE("ChatInterface - OnReceivePersistentMessage");
if ((destAvatar == NULL))
if (destAvatar == NULL)
{
DEBUG_WARNING(true, ("We received an OnREceivePersistentMessage with a success result code but NULL data. This is an error that the API should never give."));
return;
@@ -200,7 +200,7 @@ void NebulaManager::loadSceneData(std::string const & sceneId)
{
//-- apparently not a space scene
// @todo: need better way to detect this
if (!strncmp(sceneId.c_str(), "space_", 6) != 0)
if (!(strncmp(sceneId.c_str(), "space_", 6) != 0))
WARNING(true, ("NebulaManager no such datatable [%s]", filename.c_str()));
return;
}