Ir para conteúdo
  • 0

[C++] mensagens de aviso ao compilar


diarmaint

Pergunta

Galera, estou com as seguintes mensagens ao compilar um tfs 0.4 no ubuntu .

o processo termina tudo correto, mas por ser tantas mensagens de aviso, não sei se isso pode prejudicar o servidor de alguma forma, como lags etc..

Citar

  CXX      luascript.o
luascript.cpp: In static member function ‘static int32_t LuaInterface::luaSetCre                                                                                                             atureName(lua_State*)’:
luascript.cpp:8820:52: warning: suggest parentheses around assignment used as tr                                                                                                             uth value [-Wparentheses]
  if (creature = env->getCreatureByUID(popNumber(L)))
                                                    ^
  CXX      mailbox.o
  CXX      manager.o
  CXX      map.o
  CXX      monster.o
  CXX      monsters.o
  CXX      movement.o
monsters.cpp: In member function ‘void MonsterType::dropLoot(Container*)’:
monsters.cpp:211:9: warning: suggest explicit braces to avoid ambiguous ‘else’ [                                                                                                             -Wparentheses]
  else if(message == LOOTMSG_PLAYER || message == LOOTMSG_BOTH)
         ^
  CXX      networkmessage.o
  CXX      npc.o
  CXX      otserv.o
  CXX      outfit.o
otserv.cpp: In function ‘void otserv(StringVec, ServiceManager*)’:
otserv.cpp:687:41: warning: suggest parentheses around assignment used as truth                                                                                                              value [-Wparentheses]
  if(result = db->storeQuery(query.str()))
                                         ^
otserv.cpp:697:57: warning: suggest parentheses around assignment used as truth                                                                                                              value [-Wparentheses]
     if(result_ = db->storeQuery(query_playeritems.str()))
                                                         ^
otserv.cpp:716:62: warning: suggest parentheses around assignment used as truth                                                                                                              value [-Wparentheses]
     if(result_ = db->storeQuery(query_playerdepotitems.str()))
                                                              ^
otserv.cpp:735:55: warning: suggest parentheses around assignment used as truth                                                                                                              value [-Wparentheses]
     if(result_ = db->storeQuery(query_tileitems.str()))
                                                       ^
  CXX      party.o
  CXX      player.o
  CXX      protocolgame.o
player.cpp: In member function ‘void Player::manageAccount(const string&)’:
player.cpp:5184:30: warning: NULL used in arithmetic [-Wpointer-arith]
     if(msg.str().length() == NULL)
                              ^
  CXX      protocollogin.o
protocolgame.cpp: In member function ‘void ProtocolGame::sendMagicEffect(const P                                                                                                             osition&, uint16_t)’:
protocolgame.cpp:2098:12: warning: comparison is always false due to limited ran                                                                                                             ge of data type [-Wtype-limits]
  if(type > MAGIC_EFFECT_LAST || !canSee(pos))

 

Isso afeta em algo o servidor?

é normal? teria uma forma de resolver?

Link para o comentário
Compartilhar em outros sites

1 resposta a esta questão

Posts Recomendados

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...