fixed some warnings with gcc

This commit is contained in:
oy 2012-08-03 19:28:15 +02:00
parent d73c867671
commit 525825c215
6 changed files with 3 additions and 9 deletions

View file

@ -315,8 +315,6 @@ int CServerBrowser::CServerFilter::SortHash() const
void CServerBrowser::CServerFilter::Sort()
{
int i;
// create filtered list
Filter();

View file

@ -228,7 +228,7 @@ void CHud::RenderScoreHud()
{
int Local = -1;
int aPos[2] = { 1, 2 };
CGameClient::CPlayerInfoItem aPlayerInfo[2] = {0};
CGameClient::CPlayerInfoItem aPlayerInfo[2] = {{0}};
int i = 0;
for(int t = 0; t < 2 && i < MAX_CLIENTS && m_pClient->m_Snap.m_aInfoByScore[i].m_pPlayerInfo; ++i)
{

View file

@ -207,7 +207,7 @@ class CMenus : public CComponent
char m_aSaveSkinName[24];
void SaveSkinfile();
void WriteLineSkinfile(IOHANDLE File, char *pLine);
void WriteLineSkinfile(IOHANDLE File, const char *pLine);
//
bool m_EscapePressed;

View file

@ -375,7 +375,6 @@ bool CMenus::RenderFilterHeader(CUIRect View, int FilterIndex)
View.VSplitLeft(50.0f, 0, &Label);
Label.HMargin(2.0f, &Label);
char aBuf[256];
if(pFilter->Custom() <= CBrowserFilter::FILTER_ALL)
UI()->DoLabel(&Label, pFilter->Name(), 12.0f, -1);
else

View file

@ -115,7 +115,7 @@ void CMenus::SaveSkinfile()
io_close(File);
}
void CMenus::WriteLineSkinfile(IOHANDLE File, char *pLine)
void CMenus::WriteLineSkinfile(IOHANDLE File, const char *pLine)
{
io_write(File, pLine, str_length(pLine));
io_write_newline(File);
@ -1522,8 +1522,6 @@ void CMenus::RenderSettingsSound(CUIRect MainView)
void CMenus::RenderSettings(CUIRect MainView)
{
static int s_SettingsPage = 0;
CUIRect RestartWarning;
MainView.HSplitBottom(15.0f, &MainView, &RestartWarning);
RenderTools()->DrawUIRect(&MainView, ms_ColorTabbarActive, CUI::CORNER_ALL, 10.0f);

View file

@ -96,7 +96,6 @@ void CPlayers::RenderHook(
Prev = *pPrevChar;
Player = *pPlayerChar;
CNetObj_PlayerInfo pInfo = *pPlayerInfo;
CTeeRenderInfo RenderInfo = m_aRenderInfo[ClientID];
float IntraTick = Client()->IntraGameTick();