diff options
author | kinddragon <kinddragon@users.sourceforge.net> | 2010-05-16 23:28:57 +0400 |
---|---|---|
committer | kinddragon <kinddragon@users.sourceforge.net> | 2010-05-16 23:28:57 +0400 |
commit | e9e09d64fbc9c884e7e00f22bfa9de18b8748bb9 (patch) | |
tree | 1a147ec652bb6baef603d72fc6bb9129c416b38b /src/apps/mplayerc/Ifo.cpp | |
parent | 3a990e7f323a3f68c286ad8b3395c681368ff46b (diff) |
Some warnings fixed (uninitialized local variable, unused local variable, comparison signed/unsigned type, assignment in if)
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1886 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/Ifo.cpp')
-rw-r--r-- | src/apps/mplayerc/Ifo.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/apps/mplayerc/Ifo.cpp b/src/apps/mplayerc/Ifo.cpp index b7e0d1b92..ef24a3dfc 100644 --- a/src/apps/mplayerc/Ifo.cpp +++ b/src/apps/mplayerc/Ifo.cpp @@ -120,7 +120,8 @@ void CIfo::RemovePgciUOPs (uint8_t *ptr) for (i=1; i<=num; i++)
{
- lu_sub_t *lu_sub = (lu_sub_t *) ptr;
+ lu_sub_t *lu_sub = (lu_sub_t *) ptr;
+ UNUSED_ALWAYS(lu_sub);
ptr += LU_SUB_LEN;
}
@@ -225,7 +226,8 @@ bool CIfo::RemoveUOPs() for (int i=0; i<be2me_16(m_pPGCI->num); i++)
{
- if (pgc = GetPGCI(i, m_pPGCI))
+ pgc = GetPGCI(i, m_pPGCI);
+ if (pgc)
RemovePgciUOPs ((uint8_t*)pgc);
}
}
@@ -233,7 +235,8 @@ bool CIfo::RemoveUOPs() {
for (int i=0; i<be2me_16(m_pPGCIT->num); i++)
{
- if (pgc = GetPGCI(i, m_pPGCIT))
+ pgc = GetPGCI(i, m_pPGCIT);
+ if (pgc)
pgc->prohibited_ops = 0;
}
}
|