Jump to content
TrinityCore
Sign in to follow this  
AlexBexi1833

Compiling Warnings

Recommended Posts

I get this warnings and I don't know if I can ignore them or not.

 

/home/wow/TrinityCore/src/server/game/Battlegrounds/Arena.cpp: In member function 'virtual void                                                                   Arena::EndBattleground(uint32)':
/home/wow/TrinityCore/src/server/game/Battlegrounds/Arena.cpp:147:104: warning: enumeral and non                                                                  -enumeral type in conditional expression
         ArenaTeam* winnerArenaTeam = sArenaTeamMgr->GetArenaTeamById(GetArenaTeamIdForTeam(winn                                                                  er == 0 ? ALLIANCE : winner));
                                                                                                                                                                          ^
/home/wow/TrinityCore/src/server/game/Battlegrounds/Arena.cpp:148:103: warning: enumeral and non                                                                  -enumeral type in conditional expression
         ArenaTeam* loserArenaTeam = sArenaTeamMgr->GetArenaTeamById(GetArenaTeamIdForTeam(winne                                                                  r == 0 ? HORDE : GetOtherTeam(winner)));
                                                                                                                                                                         ^
/home/wow/TrinityCore/src/server/game/Battlegrounds/Arena.cpp:155:74: warning: enumeral and non-                                                                  enumeral type in conditional expression
             loserMatchmakerRating = GetArenaMatchmakerRating(winner == 0 ? HORDE : GetOtherTeam                                                                  (winner));
                                                                          ^
/home/wow/TrinityCore/src/server/game/Battlegrounds/Arena.cpp:157:75: warning: enumeral and non-                                                                  enumeral type in conditional expression
             winnerMatchmakerRating = GetArenaMatchmakerRating(winner == 0 ? ALLIANCE : winner);
                                                                           ^

 


/home/wow/TrinityCore/src/server/game/DataStores/M2Stores.cpp: In function 'bool readCamera(const M2Camera*, uint32, const M2Header*, const CinematicCameraEntry*)':
/home/wow/TrinityCore/src/server/game/DataStores/M2Stores.cpp:154:23: warning: variable 'z' set but not used [-Wunused-but-set-variable]
                 float z = lastTarget.locations.z;
                       ^

 

Please Help.

 

King Regards,

 

AlexBexi

 

Share this post


Link to post
Share on other sites

--- Canned message start --- This thread does not belong in this section in its current form, and should be reposted in the tracker. Please read this thread to make your future help requests more effective. Read This too Search on tracker before posting any bug report. --- Canned message end ---

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...