summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-05 09:59:56 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-05 10:00:09 +0200
commit39a097f52e47ca9df8a2c77c560b6036a8ec376d (patch)
tree1c001bc2006229be17e7db3ddccd04cc777e8bf5 /tools
parentf7cee96168463484cff88cd596cb6e69f1845e52 (diff)
clang-analyzer-deadcode.DeadStores
Change-Id: Ic4aba87fa750824a366fba18fcfa46fa11d31e78
Diffstat (limited to 'tools')
-rw-r--r--tools/source/rc/resmgr.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/source/rc/resmgr.cxx b/tools/source/rc/resmgr.cxx
index 01bd9633c39c..33c1e087a271 100644
--- a/tools/source/rc/resmgr.cxx
+++ b/tools/source/rc/resmgr.cxx
@@ -898,12 +898,10 @@ void ResMgr::TestStack()
if ( upperLimit < 0 )
{
OSL_FAIL( "resource stack underrun!" );
- upperLimit = aStack.size() - 1;
}
else if ( upperLimit >= static_cast<int>(aStack.size()) )
{
OSL_FAIL( "stack occupation index > allocated stack size" );
- upperLimit = aStack.size() - 1;
}
}