Çözüldü Bilinmeyen Derleme hatası?

Bu konu çözüme ulaştırılmıştır. Çözüm için konuya yazılan tüm yorumları okumayı unutmayın. Eğer konudaki yorumlar sorununuzu çözmediyse yeni bir konu açabilirsiniz.
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.

razuning

MT Üye
MT Üye
Mesaj
164
Çözümler
3
Beğeni
126
Puan
734
Ticaret Puanı
0
Merhabalar,

GCC49 sürümüne güncelledikten sonra bir kaç warning ortaya çıktı bir kaçını çözebildim en son geldiğim durum bu "[-Wparentheses]" her warningin yanında bu ibare var çözemedim araştırma yapsamda doğru düzgün bir bilgi de elde edemedim paste ve kodları kod bloğu olarak buraya bırkaıyorum yardımlar için şimdiden teşekkürler

Linkleri görebilmek için giriş yap veya kayıt ol.



WARNINGLER:
Genişlet Daralt Kopyala
gmake[1]: Leaving directory '/usr/Razuning2/Server/game/src'
gmake -C game/src clean
gmake[1]: Entering directory '/usr/Razuning2/Server/game/src'
gmake[1]: Leaving directory '/usr/Razuning2/Server/game/src'
gmake -C game/src
gmake[1]: Entering directory '/usr/Razuning2/Server/game/src'
Derleniyor -> BattleArena.cpp
Derleniyor -> FSM.cpp
Derleniyor -> MarkConvert.cpp
Derleniyor -> MarkImage.cpp
Derleniyor -> MarkManager.cpp
Derleniyor -> OXEvent.cpp
Derleniyor -> TrafficProfiler.cpp
Derleniyor -> ani.cpp
Derleniyor -> arena.cpp
Derleniyor -> banword.cpp
Derleniyor -> battle.cpp
Derleniyor -> blend_item.cpp
Derleniyor -> block_country.cpp
Derleniyor -> buffer_manager.cpp
Derleniyor -> building.cpp
Derleniyor -> castle.cpp
Derleniyor -> char.cpp
char.cpp: In member function 'int CHARACTER::GetPolymorphPoint(BYTE) const':
char.cpp:2882:57: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      if (GetJob() == JOB_SHAMAN || GetJob() == JOB_SURA && GetSkillGroup() == 2)
                                                         ^
char.cpp: In member function 'void CHARACTER::SetTarget(LPCHARACTER)':
char.cpp:5105:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if (m_pkChrTarget->IsPC() && !m_pkChrTarget->IsPolymorphed() || m_pkChrTarget->GetMaxHP() <= 0)
                             ^
char.cpp: In member function 'bool CHARACTER::CanSummon(int)':
char.cpp:6295:49: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  return (iLeaderShip >= 20 || iLeaderShip >= 12 && m_dwLastDeadTime + 180 > get_dword_time());
                                                 ^
Derleniyor -> char_affect.cpp
Derleniyor -> char_battle.cpp
char_battle.cpp: In member function 'void CHARACTER::Reward(bool)':
char_battle.cpp:785:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
   if (GetLevel() - pkAttacker->GetLevel() >= -10)
      ^
Derleniyor -> char_change_empire.cpp
Derleniyor -> char_horse.cpp
Derleniyor -> char_item.cpp
char_item.cpp: In member function 'bool CHARACTER::UseItemEx(LPITEM, TItemPos)':
char_item.cpp:3666:53: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
          if (item->GetVnum() == ITEM_VALENTINE_ROSE && SEX_MALE==GET_SEX(this) ||
                                                     ^
char_item.cpp:3690:53: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
          if (item->GetVnum() == ITEM_WHITEDAY_CANDY && SEX_MALE==GET_SEX(this) ||
                                                     ^
char_item.cpp:5155:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (item->GetSocket(0) >= _countof(aApplyInfo))
                                ^
char_item.cpp:1688:6: warning: variable 'iLimitTimerBasedOnWearFlagIndex' set but not used [-Wunused-but-set-variable]
  int iLimitTimerBasedOnWearFlagIndex = -1;
      ^
char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
char_item.cpp:5383:22: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
  if (item->GetVnum() == 50200 | item->GetVnum() == 71049)
                      ^
Derleniyor -> char_manager.cpp
Derleniyor -> char_quickslot.cpp
Derleniyor -> char_resist.cpp
Derleniyor -> char_skill.cpp
char_skill.cpp: In member function 'bool CHARACTER::UseSkill(DWORD, LPCHARACTER, bool)':
char_skill.cpp:2544:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if (IsAffectFlag(AFF_TANHWAN_DASH) || pkVictim && pkVictim != this)
                                                  ^
char_skill.cpp:2650:96: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if (pkSk->dwVnum == SKILL_MUYEONG || pkSk->IsChargeSkill() && !IsAffectFlag(AFF_TANHWAN_DASH) && !pkVictim)
                                                                                                ^
Derleniyor -> char_state.cpp
char_state.cpp: In member function 'void {anonymous}::FuncFindChrForFlagBase::operator()(LPENTITY)':
char_state.cpp:144:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         m_pkChr->GetGuild()->GetID() != pkAff->lApplyValue)
                                      ^
char_state.cpp: In member function 'virtual void CHARACTER::StateMove()':
char_state.cpp:809:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
   if (!IsWalking() && !IsRiding())
      ^
Derleniyor -> PetSystem.cpp
Derleniyor -> cmd.cpp
Derleniyor -> cmd_emotion.cpp
Derleniyor -> cmd_general.cpp
Derleniyor -> cmd_gm.cpp
Derleniyor -> cmd_oxevent.cpp
Derleniyor -> config.cpp
Derleniyor -> constants.cpp
Derleniyor -> crc32.cpp
Derleniyor -> cube.cpp
Derleniyor -> db.cpp
Derleniyor -> desc.cpp
In file included from desc.cpp:8:0:
protocol.h: In function 'const char* encode_2bytes(sh_int)':
protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  *((sh_int *) a) = ind;
                ^
protocol.h: In function 'const char* encode_4bytes(int)':
protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  *((int *) a) = ind;
             ^
Derleniyor -> desc_client.cpp
In file included from desc_client.cpp:7:0:
protocol.h: In function 'const char* encode_2bytes(sh_int)':
protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  *((sh_int *) a) = ind;
                ^
protocol.h: In function 'const char* encode_4bytes(int)':
protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  *((int *) a) = ind;
             ^
Derleniyor -> desc_manager.cpp
In file included from desc_manager.cpp:10:0:
protocol.h: In function 'const char* encode_2bytes(sh_int)':
protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  *((sh_int *) a) = ind;
                ^
protocol.h: In function 'const char* encode_4bytes(int)':
protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  *((int *) a) = ind;
             ^
desc_manager.cpp: In member function 'DWORD DESC_MANAGER::CreateHandshake()':
desc_manager.cpp:135:26: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
   *(DWORD *) (crc_buf    ) = val;
                          ^
Derleniyor -> desc_p2p.cpp
In file included from desc_p2p.cpp:3:0:
protocol.h: In function 'const char* encode_2bytes(sh_int)':
protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  *((sh_int *) a) = ind;
                ^
protocol.h: In function 'const char* encode_4bytes(int)':
protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  *((int *) a) = ind;
             ^
Derleniyor -> dev_log.cpp
Derleniyor -> dungeon.cpp
Derleniyor -> empire_text_convert.cpp
Derleniyor -> entity.cpp
Derleniyor -> entity_view.cpp
Derleniyor -> event.cpp
Derleniyor -> event_queue.cpp
Derleniyor -> exchange.cpp
Derleniyor -> file_loader.cpp
Derleniyor -> fishing.cpp
Derleniyor -> gm.cpp
gm.cpp: In function 'BYTE gm_new_get_level(const char*, const char*, const char*)':
gm.cpp:69:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if ( LC_IsEurope() && !LC_IsTaiwan() || LC_IsSingapore() )
                     ^
Derleniyor -> guild.cpp
Derleniyor -> guild_manager.cpp
Derleniyor -> guild_war.cpp
Derleniyor -> horse_rider.cpp
Derleniyor -> horsename_manager.cpp
Derleniyor -> input.cpp
Derleniyor -> input_auth.cpp
In file included from input_auth.cpp:7:0:
protocol.h: In function 'const char* encode_2bytes(sh_int)':
protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  *((sh_int *) a) = ind;
                ^
protocol.h: In function 'const char* encode_4bytes(int)':
protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  *((int *) a) = ind;
             ^
Derleniyor -> input_db.cpp
In file included from input_db.cpp:11:0:
protocol.h: In function 'const char* encode_2bytes(sh_int)':
protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  *((sh_int *) a) = ind;
                ^
protocol.h: In function 'const char* encode_4bytes(int)':
protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  *((int *) a) = ind;
             ^
Derleniyor -> input_login.cpp
In file included from input_login.cpp:13:0:
protocol.h: In function 'const char* encode_2bytes(sh_int)':
protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  *((sh_int *) a) = ind;
                ^
protocol.h: In function 'const char* encode_4bytes(int)':
protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  *((int *) a) = ind;
             ^
Derleniyor -> input_main.cpp
In file included from input_main.cpp:9:0:
protocol.h: In function 'const char* encode_2bytes(sh_int)':
protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  *((sh_int *) a) = ind;
                ^
protocol.h: In function 'const char* encode_4bytes(int)':
protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  *((int *) a) = ind;
             ^
Derleniyor -> input_p2p.cpp
Derleniyor -> input_teen.cpp
In file included from input_teen.cpp:17:0:
protocol.h: In function 'const char* encode_2bytes(sh_int)':
protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  *((sh_int *) a) = ind;
                ^
protocol.h: In function 'const char* encode_4bytes(int)':
protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  *((int *) a) = ind;
             ^
input_teen.cpp: In member function 'bool CInputTeen::ProcessHandshake(LPDESC, const void*, size_t, int&)':
input_teen.cpp:59:17: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  *((DWORD *) buf) = handshake ^ HANDSHAKE_XOR;
                 ^
Derleniyor -> input_udp.cpp
In file included from input_udp.cpp:9:0:
protocol.h: In function 'const char* encode_2bytes(sh_int)':
protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  *((sh_int *) a) = ind;
                ^
protocol.h: In function 'const char* encode_4bytes(int)':
protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  *((int *) a) = ind;
             ^
Derleniyor -> ip_ban.cpp
Derleniyor -> item.cpp
In file included from item.cpp:8:0:
protocol.h: In function 'const char* encode_2bytes(sh_int)':
protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  *((sh_int *) a) = ind;
                ^
protocol.h: In function 'const char* encode_4bytes(int)':
protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  *((int *) a) = ind;
             ^
item.cpp: In member function 'bool CItem::EquipTo(LPCHARACTER, BYTE)':
item.cpp:867:32: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if (item=m_pOwner->GetWear(i))
                                ^
item.cpp: In member function 'bool CItem::Unequip()':
item.cpp:961:32: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if (item=m_pOwner->GetWear(i))
                                ^
Derleniyor -> item_addon.cpp
Derleniyor -> item_attribute.cpp
Derleniyor -> item_manager.cpp
Derleniyor -> item_manager_idrange.cpp
Derleniyor -> locale.cpp
Derleniyor -> locale_service.cpp
Derleniyor -> log.cpp
Derleniyor -> login_data.cpp
Derleniyor -> lzo_manager.cpp
Derleniyor -> marriage.cpp
Derleniyor -> matrix_card.cpp
Derleniyor -> messenger_manager.cpp
Derleniyor -> mining.cpp
Derleniyor -> mob_manager.cpp
Derleniyor -> monarch.cpp
Derleniyor -> motion.cpp
Derleniyor -> over9refine.cpp
Derleniyor -> p2p.cpp
Derleniyor -> packet_info.cpp
Derleniyor -> party.cpp
Derleniyor -> passpod.cpp
Derleniyor -> pcbang.cpp
Derleniyor -> polymorph.cpp
Derleniyor -> priv_manager.cpp
Derleniyor -> pvp.cpp
pvp.cpp: In member function 'bool CPVPManager::CanAttack(LPCHARACTER, LPCHARACTER)':
pvp.cpp:425:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if ( pkChr->GetPKMode() == PK_MODE_PROTECT && pkChr->GetEmpire() == bMapEmpire ||
                                              ^
Derleniyor -> questevent.cpp
Derleniyor -> questlua.cpp
Derleniyor -> questlua_affect.cpp
Derleniyor -> questlua_arena.cpp
Derleniyor -> questlua_ba.cpp
Derleniyor -> questlua_building.cpp
Derleniyor -> questlua_danceevent.cpp
Derleniyor -> questlua_dungeon.cpp
Derleniyor -> questlua_forked.cpp
Derleniyor -> questlua_game.cpp
Derleniyor -> questlua_global.cpp
Derleniyor -> questlua_guild.cpp
Derleniyor -> questlua_horse.cpp
Derleniyor -> questlua_pet.cpp
Derleniyor -> questlua_item.cpp
Derleniyor -> questlua_marriage.cpp
Derleniyor -> questlua_mgmt.cpp
Derleniyor -> questlua_monarch.cpp
Derleniyor -> questlua_npc.cpp
Derleniyor -> questlua_oxevent.cpp
Derleniyor -> questlua_party.cpp
Derleniyor -> questlua_pc.cpp
questlua_pc.cpp: In function 'int quest::pc_give_item_from_special_item_group(lua_State*)':
questlua_pc.cpp:438:38: warning: passing NULL to non-pointer argument 1 of 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const allocator_type&) [with _Tp = CItem*; _Alloc = std::allocator<CItem*>; std::vector<_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<CItem*>]' [-Wconversion-null]
   std::vector <LPITEM> item_gets(NULL);
                                      ^
Derleniyor -> questlua_quest.cpp
Derleniyor -> questlua_target.cpp
Derleniyor -> questmanager.cpp
Derleniyor -> questnpc.cpp
Derleniyor -> questpc.cpp
questpc.cpp: In member function 'void quest::PC::SendQuestInfoPakcet()':
questpc.cpp:251:21: warning: array subscript is above array bounds [-Warray-bounds]
    qi.szTitle[30 + 1] = '\0';
                     ^
Derleniyor -> refine.cpp
Derleniyor -> regen.cpp
Derleniyor -> safebox.cpp
Derleniyor -> sectree.cpp
Derleniyor -> sectree_manager.cpp
sectree_manager.cpp: In member function 'void SECTREE_MANAGER::LoadDungeon(int, const char*)':
sectree_manager.cpp:339:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if (buf[0] == '#' || buf[0] == '/' && buf[1] == '/')
                                      ^
Derleniyor -> sequence.cpp
Derleniyor -> shop.cpp
Derleniyor -> skill.cpp
Derleniyor -> start_position.cpp
Derleniyor -> target.cpp
Derleniyor -> text_file_loader.cpp
Derleniyor -> trigger.cpp
trigger.cpp: In member function 'CHARACTER* FuncFindMobVictim::GetVictim()':
trigger.cpp:141:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if (m_pkChrBuilding && m_pkChr->GetHP() * 2 > m_pkChr->GetMaxHP() || !m_pkChrVictim)
                        ^
Derleniyor -> utils.cpp
Derleniyor -> vector.cpp
Derleniyor -> war_map.cpp
Derleniyor -> wedding.cpp
Derleniyor -> xmas_event.cpp
Derleniyor -> version.cpp
Derleniyor -> panama.cpp
Derleniyor -> threeway_war.cpp
Derleniyor -> map_location.cpp
Derleniyor -> auth_brazil.cpp
Derleniyor -> BlueDragon.cpp
Derleniyor -> BlueDragon_Binder.cpp
Derleniyor -> DragonLair.cpp
Derleniyor -> questlua_dragonlair.cpp
Derleniyor -> HackShield.cpp
Derleniyor -> HackShield_Impl.cpp
Derleniyor -> char_hackshield.cpp
Derleniyor -> skill_power.cpp
Derleniyor -> affect.cpp
Derleniyor -> SpeedServer.cpp
In file included from SpeedServer.cpp:3:0:
SpeedServer.h: In member function 'bool HME::operator<(const HME&) const':
SpeedServer.h:43:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     || (hour==rhs.hour) && (min<rhs.min);
                         ^
SpeedServer.h: In member function 'bool Date::operator<(const Date&) const':
SpeedServer.h:68:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     || (year==rhs.year) && (mon<rhs.mon)
                         ^
SpeedServer.h:69:43: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     || (year==rhs.year) && (mon==rhs.mon) && (day<rhs.day);
                                           ^
Derleniyor -> questlua_speedserver.cpp
In file included from questlua_speedserver.cpp:2:0:
SpeedServer.h: In member function 'bool HME::operator<(const HME&) const':
SpeedServer.h:43:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     || (hour==rhs.hour) && (min<rhs.min);
                         ^
SpeedServer.h: In member function 'bool Date::operator<(const Date&) const':
SpeedServer.h:68:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     || (year==rhs.year) && (mon<rhs.mon)
                         ^
SpeedServer.h:69:43: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     || (year==rhs.year) && (mon==rhs.mon) && (day<rhs.day);
                                           ^
Derleniyor -> XTrapManager.cpp
Derleniyor -> auction_manager.cpp
Derleniyor -> FileMonitor_FreeBSD.cpp
Derleniyor -> ClientPackageCryptInfo.cpp
Derleniyor -> cipher.cpp
Derleniyor -> buff_on_attributes.cpp
Derleniyor -> dragon_soul_table.cpp
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::ReadVnumMapper()':
dragon_soul_table.cpp:128:9: warning: 'bType' may be used uninitialized in this function [-Wmaybe-uninitialized]
    BYTE bType;
         ^
Derleniyor -> DragonSoul.cpp
Derleniyor -> group_text_parse_tree.cpp
Derleniyor -> char_dragonsoul.cpp
Derleniyor -> questlua_dragonsoul.cpp
Derleniyor -> shop_manager.cpp
In file included from stdafx.h:7:0,
                 from shop_manager.cpp:1:
shop_manager.cpp: In member function 'bool CShopManager::Initialize(TShopTable*, int)':
debug_allocator.h:157:31: warning: deleting object of polymorphic class type 'CShop' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
 #define M2_DELETE(p) delete (p)
                               ^
shop_manager.cpp:51:4: note: in expansion of macro 'M2_DELETE'
    M2_DELETE(shop);
    ^
shop_manager.cpp: In member function 'void CShopManager::Destroy()':
debug_allocator.h:157:31: warning: deleting object of polymorphic class type 'CShop' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
 #define M2_DELETE(p) delete (p)
                               ^
shop_manager.cpp:72:3: note: in expansion of macro 'M2_DELETE'
   M2_DELETE(it->second);
   ^
shop_manager.cpp: In member function 'void CShopManager::DestroyPCShop(LPCHARACTER)':
debug_allocator.h:157:31: warning: deleting object of polymorphic class type 'CShop' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
 #define M2_DELETE(p) delete (p)
                               ^
shop_manager.cpp:187:2: note: in expansion of macro 'M2_DELETE'
  M2_DELETE(pkShop);
  ^
shop_manager.cpp: In member function 'void CShopManager::Sell(LPCHARACTER, BYTE, BYTE)':
shop_manager.cpp:302:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if (dwPrice > item->GetGold())
              ^
shop_manager.cpp:302:2: warning: 'dwPrice' may be used uninitialized in this function [-Wmaybe-uninitialized]
  if (dwPrice > item->GetGold())
  ^
Derleniyor -> shopEx.cpp
Derleniyor -> item_manager_read_tables.cpp
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C
minilzo.c: In function '_lzo_config_check':
minilzo.c:1217:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    b[i] = * (const unsigned short *) &u.x[i];
    ^
minilzo.c:1240:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    a[i] = * (const lzo_uint32 *) &u.x[i];
    ^
Derleniyor -> minilzo.c
linking ../game....
gmake[1]: Leaving directory '/usr/Razuning2/Server/game/src'
gmake -C db/src dep
gmake[1]: Entering directory '/usr/Razuning2/Server/db/src'
makedepend -fDepend  -I../../../Extern/include -I../../../Extern/include/mysql -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p.obj/ Config.cpp NetBase.cpp Peer.cpp PeerBase.cpp Main.cpp Lock.cpp DBManager.cpp Cache.cpp LoginData.cpp ClientManager.cpp ClientManagerPlayer.cpp ClientManagerLogin.cpp ClientManagerBoot.cpp ClientManagerParty.cpp ClientManagerGuild.cpp GuildManager.cpp HB.cpp PrivManager.cpp MoneyLog.cpp ItemAwardManager.cpp ClientManagerEventFlag.cpp Marriage.cpp Monarch.cpp BlockCountry.cpp ItemIDRangeManager.cpp ClientManagerHorseName.cpp version.cpp AuctionManager.cpp ProtoReader.cpp CsvReader.cpp  2> /dev/null
gmake[1]: Leaving directory '/usr/Razuning2/Server/db/src'
gmake -C db/src clean
gmake[1]: Entering directory '/usr/Razuning2/Server/db/src'
gmake[1]: Leaving directory '/usr/Razuning2/Server/db/src'
gmake -C db/src
gmake[1]: Entering directory '/usr/Razuning2/Server/db/src'
Derleniyor -> Config.cpp
Derleniyor -> NetBase.cpp
Derleniyor -> Peer.cpp
Derleniyor -> PeerBase.cpp
Derleniyor -> Main.cpp
In file included from Main.cpp:6:0:
GuildManager.h: In member function 'bool TGuildDeclareInfo::operator<(const TGuildDeclareInfo&) const':
GuildManager.h:32:74: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   return dwGuildID[0] < r.dwGuildID[0] || dwGuildID[0] == r.dwGuildID[0] && dwGuildID[1] < r.dwGuildID[1];
                                                                          ^
GuildManager.h: In member function 'bool TGuildWaitStartInfo::operator<(const TGuildWaitStartInfo&) const':
GuildManager.h:66:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   return GID[0] < r.GID[0] || GID[0] == r.GID[0] && GID[1] < r.GID[1];
                                                  ^
GuildManager.h: In function 'bool operator<(const TGuildSkillUsed&, const TGuildSkillUsed&)':
GuildManager.h:102:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     return a.GID < b.GID || a.GID == b.GID && a.dwSkillVnum < b.dwSkillVnum;
                                            ^
Derleniyor -> Lock.cpp
Derleniyor -> DBManager.cpp
Derleniyor -> Cache.cpp
Derleniyor -> LoginData.cpp
Derleniyor -> ClientManager.cpp
In file included from ClientManager.cpp:15:0:
GuildManager.h: In member function 'bool TGuildDeclareInfo::operator<(const TGuildDeclareInfo&) const':
GuildManager.h:32:74: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   return dwGuildID[0] < r.dwGuildID[0] || dwGuildID[0] == r.dwGuildID[0] && dwGuildID[1] < r.dwGuildID[1];
                                                                          ^
GuildManager.h: In member function 'bool TGuildWaitStartInfo::operator<(const TGuildWaitStartInfo&) const':
GuildManager.h:66:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   return GID[0] < r.GID[0] || GID[0] == r.GID[0] && GID[1] < r.GID[1];
                                                  ^
GuildManager.h: In function 'bool operator<(const TGuildSkillUsed&, const TGuildSkillUsed&)':
GuildManager.h:102:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     return a.GID < b.GID || a.GID == b.GID && a.dwSkillVnum < b.dwSkillVnum;
                                            ^
ClientManager.cpp: In member function 'void CClientManager::MainLoop()':
ClientManager.cpp:236:10: warning: deleting object of polymorphic class type 'CItemPriceListTableCache' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
   delete pCache;
          ^
ClientManager.cpp: In member function 'void CClientManager::RESULT_SAFEBOX_CHANGE_PASSWORD(CPeer*, SQLMsg*)':
ClientManager.cpp:878:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if (row[0] && *row[0] && !strcasecmp(row[0], p->login) || (!row[0] || !*row[0]) && !strcmp("000000", p->login))
                         ^
Derleniyor -> ClientManagerPlayer.cpp
ClientManagerPlayer.cpp: In member function 'void CClientManager::RESULT_HIGHSCORE_REGISTER(CPeer*, SQLMsg*)':
ClientManagerPlayer.cpp:1262:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if (pi->account_index && current_value >= value || !pi->account_index && current_value <= value)
                          ^
Derleniyor -> ClientManagerLogin.cpp
Derleniyor -> ClientManagerBoot.cpp
ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeMobTable()':
ClientManagerBoot.cpp:201:7: warning: variable 'isNameFile' set but not used [-Wunused-but-set-variable]
  bool isNameFile = true;
       ^
ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeItemTable()':
ClientManagerBoot.cpp:598:7: warning: variable 'isNameFile' set but not used [-Wunused-but-set-variable]
  bool isNameFile = true;
       ^
Derleniyor -> ClientManagerParty.cpp
Derleniyor -> ClientManagerGuild.cpp
In file included from ClientManagerGuild.cpp:8:0:
GuildManager.h: In member function 'bool TGuildDeclareInfo::operator<(const TGuildDeclareInfo&) const':
GuildManager.h:32:74: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   return dwGuildID[0] < r.dwGuildID[0] || dwGuildID[0] == r.dwGuildID[0] && dwGuildID[1] < r.dwGuildID[1];
                                                                          ^
GuildManager.h: In member function 'bool TGuildWaitStartInfo::operator<(const TGuildWaitStartInfo&) const':
GuildManager.h:66:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   return GID[0] < r.GID[0] || GID[0] == r.GID[0] && GID[1] < r.GID[1];
                                                  ^
GuildManager.h: In function 'bool operator<(const TGuildSkillUsed&, const TGuildSkillUsed&)':
GuildManager.h:102:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     return a.GID < b.GID || a.GID == b.GID && a.dwSkillVnum < b.dwSkillVnum;
                                            ^
Derleniyor -> GuildManager.cpp
In file included from GuildManager.cpp:2:0:
GuildManager.h: In member function 'bool TGuildDeclareInfo::operator<(const TGuildDeclareInfo&) const':
GuildManager.h:32:74: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   return dwGuildID[0] < r.dwGuildID[0] || dwGuildID[0] == r.dwGuildID[0] && dwGuildID[1] < r.dwGuildID[1];
                                                                          ^
GuildManager.h: In member function 'bool TGuildWaitStartInfo::operator<(const TGuildWaitStartInfo&) const':
GuildManager.h:66:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   return GID[0] < r.GID[0] || GID[0] == r.GID[0] && GID[1] < r.GID[1];
                                                  ^
GuildManager.h: In function 'bool operator<(const TGuildSkillUsed&, const TGuildSkillUsed&)':
GuildManager.h:102:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     return a.GID < b.GID || a.GID == b.GID && a.dwSkillVnum < b.dwSkillVnum;
                                            ^
Derleniyor -> HB.cpp
Derleniyor -> PrivManager.cpp
Derleniyor -> MoneyLog.cpp
Derleniyor -> ItemAwardManager.cpp
Derleniyor -> ClientManagerEventFlag.cpp
Derleniyor -> Marriage.cpp
Derleniyor -> Monarch.cpp
Derleniyor -> BlockCountry.cpp
Derleniyor -> ItemIDRangeManager.cpp
Derleniyor -> ClientManagerHorseName.cpp
Derleniyor -> version.cpp
Derleniyor -> AuctionManager.cpp
Derleniyor -> ProtoReader.cpp
Derleniyor -> CsvReader.cpp
linking ...
gmake[1]: Leaving directory '/usr/Razuning2/Server/db/src'
--------------------------------------
Full Build End
 
Bunların çözümünü @Whistle kanalda anlatıyor zaten çok basit çözümleri parantez eklemesi yapman gerekiyor mobildeyim şimdi çözüm sunamıyorum ama kanalda warning çözümü videosunda anlatıyor.
 
Çözüm
Öncelikle şu cümle kafama takıldı;
GCC49 sürümüne güncelledikten sonra bir kaç

Zaten varsayılan dosyalar gcc4.9 ile derleniyordu. Hangi sürümden hangi sürüme geçiş yaptınız?
Şimdi artık gcc10 çıktı. Bu biraz güncelleme yerine geri dönüş gibi bir şey olmuş. Zaten üyelerimiz yorumlarda kaynaklarla beraber açıklamayı yapmış..

gizle atakan önemli bişeye benzemiyo
Çözümü basit zaten :)
 
Öncelikle şu cümle kafama takıldı;


Zaten varsayılan dosyalar gcc4.9 ile derleniyordu. Hangi sürümden hangi sürüme geçiş yaptınız?
Şimdi artık gcc10 çıktı. Bu biraz güncelleme yerine geri dönüş gibi bir şey olmuş. Zaten üyelerimiz yorumlarda kaynaklarla beraber açıklamayı yapmış..


Çözümü basit zaten :)
Diğer forumdaki gcc49 yapalım konusundakinleri yapmıştım public için yaptım zaten bu dosyaları ek bir projem daha var onu gcc9 veya 10 kurmayı düşünüyorum bu tür konular varsa rica edersem iletebilir misiniz
 
(a && b || c || d) --- böyle bi bölüm vardır

((a && b) || c || d) --- böyle yap diyor

senin kodunda ise
bunu
if (GetJob() == JOB_SHAMAN || GetJob() == JOB_SURA && GetSkillGroup() == 2)
böyle yapman gerekiyor
if (GetJob() == JOB_SHAMAN || (GetJob() == JOB_SURA && GetSkillGroup() == 2))

diğerlerini de böyle uyarlarsın
 
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Geri
Üst