Kaydet (Commit) 39a097f5 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

clang-analyzer-deadcode.DeadStores

Change-Id: Ic4aba87fa750824a366fba18fcfa46fa11d31e78
üst f7cee961
...@@ -898,12 +898,10 @@ void ResMgr::TestStack() ...@@ -898,12 +898,10 @@ void ResMgr::TestStack()
if ( upperLimit < 0 ) if ( upperLimit < 0 )
{ {
OSL_FAIL( "resource stack underrun!" ); OSL_FAIL( "resource stack underrun!" );
upperLimit = aStack.size() - 1;
} }
else if ( upperLimit >= static_cast<int>(aStack.size()) ) else if ( upperLimit >= static_cast<int>(aStack.size()) )
{ {
OSL_FAIL( "stack occupation index > allocated stack size" ); OSL_FAIL( "stack occupation index > allocated stack size" );
upperLimit = aStack.size() - 1;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment