summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cpputools/source/unoexe/unoexe.cxx1
-rw-r--r--sal/rtl/alloc_cache.cxx2
-rw-r--r--sc/source/filter/oox/workbookfragment.cxx1
-rw-r--r--vcl/qa/cppunit/timer.cxx5
4 files changed, 9 insertions, 0 deletions
diff --git a/cpputools/source/unoexe/unoexe.cxx b/cpputools/source/unoexe/unoexe.cxx
index f06b2dca42ca..91d75b479fd9 100644
--- a/cpputools/source/unoexe/unoexe.cxx
+++ b/cpputools/source/unoexe/unoexe.cxx
@@ -493,6 +493,7 @@ SAL_IMPLEMENT_MAIN()
nIndex = 0;
OUString aUnoUrlToken( aUnoUrl.getToken( 1, ';', nIndex ) );
+ // coverity[infinite_loop]
for (;;)
{
// accepting
diff --git a/sal/rtl/alloc_cache.cxx b/sal/rtl/alloc_cache.cxx
index 19591a89870c..be6cd4dadbaa 100644
--- a/sal/rtl/alloc_cache.cxx
+++ b/sal/rtl/alloc_cache.cxx
@@ -919,12 +919,14 @@ rtl_cache_deactivate (
/* cleanup cpu layer */
if ((mag = cache->m_cpu_curr) != 0)
{
+ // coverity[missing_lock]
cache->m_cpu_curr = 0;
rtl_cache_magazine_clear (cache, mag);
rtl_cache_free (mag_cache, mag);
}
if ((mag = cache->m_cpu_prev) != 0)
{
+ // coverity[missing_lock]
cache->m_cpu_prev = 0;
rtl_cache_magazine_clear (cache, mag);
rtl_cache_free (mag_cache, mag);
diff --git a/sc/source/filter/oox/workbookfragment.cxx b/sc/source/filter/oox/workbookfragment.cxx
index bacbc65b1efb..26bf3b48e06b 100644
--- a/sc/source/filter/oox/workbookfragment.cxx
+++ b/sc/source/filter/oox/workbookfragment.cxx
@@ -328,6 +328,7 @@ void importSheetFragments( WorkbookFragment& rWorkbookHandler, SheetFragmentVect
nSheetsLeft++;
}
+ // coverity[infinite_loop]
while( nSheetsLeft > 0)
{
// This is a much more controlled re-enterancy hazard than
diff --git a/vcl/qa/cppunit/timer.cxx b/vcl/qa/cppunit/timer.cxx
index d432f8a75f1f..0732baaf5a96 100644
--- a/vcl/qa/cppunit/timer.cxx
+++ b/vcl/qa/cppunit/timer.cxx
@@ -104,6 +104,7 @@ void TimerTest::testDurations()
{
bool bDone = false;
TimerBool aTimer( aDurations[i], bDone );
+ // coverity[infinite_loop]
while( !bDone )
{
Application::Yield();
@@ -134,6 +135,7 @@ void TimerTest::testAutoTimer()
{
sal_Int32 nCount = 0;
AutoTimerCount aCount(1, nCount);
+ // coverity[infinite_loop]
while (nCount < 100) {
Application::Yield();
}
@@ -161,6 +163,7 @@ void TimerTest::testRecursiveTimer()
sal_Int32 nCount = 0;
YieldTimer aCount(5);
AutoTimerCount aCountUp( 3, nCount );
+ // coverity[infinite_loop]
while (nCount < 20)
Application::Yield();
}
@@ -194,8 +197,10 @@ void TimerTest::testSlowTimerCallback()
sal_Int32 nCount = 0;
AutoTimerCount aHighFreq(1, nCount);
SlowCallbackTimer aSlow(250, bBeenSlow);
+ // coverity[infinite_loop]
while (!bBeenSlow)
Application::Yield();
+ // coverity[infinite_loop]
while (nCount < 200)
Application::Yield();
}