diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-25 10:20:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-25 10:33:54 +0000 |
commit | c2915ab373cb185271348d120777a96181c00ab8 (patch) | |
tree | d43bfead85364d971d1fa76a2caca9f0725d890a /sal/osl/unx/profile.c | |
parent | 33e2f55fdfa6a008a8fec4a6bd3c341d8ecaadb1 (diff) |
WaE: gcc 4.6.0 various warnings
Diffstat (limited to 'sal/osl/unx/profile.c')
-rw-r--r-- | sal/osl/unx/profile.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/sal/osl/unx/profile.c b/sal/osl/unx/profile.c index 5c636a5c3e7f..6d6184887d4e 100644 --- a/sal/osl/unx/profile.c +++ b/sal/osl/unx/profile.c @@ -274,7 +274,6 @@ static oslProfile SAL_CALL osl_psz_openProfile(const sal_Char *pszProfileName, o sal_Bool SAL_CALL osl_closeProfile(oslProfile Profile) { osl_TProfileImpl* pProfile = (osl_TProfileImpl*)Profile; - sal_Bool bRet = sal_False; #ifdef TRACE_OSL_PROFILE OSL_TRACE("In osl_closeProfile\n"); @@ -308,8 +307,9 @@ sal_Bool SAL_CALL osl_closeProfile(oslProfile Profile) if ( pProfile != 0 ) { - bRet=storeProfile(pProfile, sal_True); + sal_Bool bRet = storeProfile(pProfile, sal_True); OSL_ASSERT(bRet); + (void)bRet; } } else @@ -560,6 +560,7 @@ sal_Bool SAL_CALL osl_readProfileString(oslProfile Profile, bRet=releaseProfile(pProfile); OSL_ASSERT(bRet); + (void)bRet; if ( pStr == 0 ) { @@ -1016,6 +1017,7 @@ sal_uInt32 SAL_CALL osl_getProfileSectionEntries(oslProfile Profile, const sal_C bRet=releaseProfile(pProfile); OSL_ASSERT(bRet); + (void)bRet; pthread_mutex_unlock(&(pTmpProfile->m_AccessLock)); @@ -1107,6 +1109,7 @@ sal_uInt32 SAL_CALL osl_getProfileSections(oslProfile Profile, sal_Char* pszBuff bRet=releaseProfile(pProfile); OSL_ASSERT(bRet); + (void)bRet; pthread_mutex_unlock(&(pTmpProfile->m_AccessLock)); @@ -2103,7 +2106,6 @@ static osl_TProfileImpl* acquireProfile(oslProfile Profile, sal_Bool bWriteable) { osl_TProfileImpl* pProfile = (osl_TProfileImpl*)Profile; oslProfileOption PFlags=0; - sal_Bool bRet=sal_False; if ( bWriteable ) { @@ -2148,10 +2150,13 @@ static osl_TProfileImpl* acquireProfile(oslProfile Profile, sal_Bool bWriteable) if (memcmp(&Stamp, &(pProfile->m_Stamp), sizeof(osl_TStamp))) { + sal_Bool bRet=sal_False; + pProfile->m_Stamp = Stamp; bRet=loadProfile(pProfile->m_pFile, pProfile); OSL_ASSERT(bRet); + (void)bRet; } } else @@ -2173,8 +2178,6 @@ static osl_TProfileImpl* acquireProfile(oslProfile Profile, sal_Bool bWriteable) static sal_Bool releaseProfile(osl_TProfileImpl* pProfile) { - sal_Bool bRet=sal_False; - #ifdef TRACE_OSL_PROFILE OSL_TRACE("In releaseProfile\n"); #endif @@ -2203,11 +2206,11 @@ static sal_Bool releaseProfile(osl_TProfileImpl* pProfile) { if (pProfile->m_Flags & FLG_MODIFIED) { - bRet=storeProfile(pProfile, sal_False); + sal_Bool bRet=storeProfile(pProfile, sal_False); OSL_ASSERT(bRet); + (void)bRet; } - closeFileImpl(pProfile->m_pFile,pProfile->m_Flags); pProfile->m_pFile = NULL; } |