summaryrefslogtreecommitdiff
path: root/store
diff options
context:
space:
mode:
authorPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-08-29 09:53:08 +0200
committerPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-09-06 22:40:50 +0200
commit6f94c644c3c0c08b245d66519ff7116c54d600b6 (patch)
tree42c9be70c9b41edaf7b7ec6a43cf3cbd8549a810 /store
parent7d146bdf4ccb9d0e2190a1ae85643a18ffb9601d (diff)
[cppchecker] suppression of unread Variable
Diffstat (limited to 'store')
-rw-r--r--store/source/storcach.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/store/source/storcach.cxx b/store/source/storcach.cxx
index 79c34492e978..61d42322e2ab 100644
--- a/store/source/storcach.cxx
+++ b/store/source/storcach.cxx
@@ -350,7 +350,7 @@ PageCache_Impl::PageCache_Impl (sal_uInt16 nPageSize)
PageCache_Impl::~PageCache_Impl()
{
- double s_x = 0.0, s_xx = 0.0;
+ double s_x = 0.0;
sal_Size i, n = m_hash_size;
for (i = 0; i < n; i++)
{
@@ -364,7 +364,6 @@ PageCache_Impl::~PageCache_Impl()
x += 1;
}
s_x += double(x);
- s_xx += double(x) * double(x);
}
double ave = s_x / double(n);
OSL_TRACE("ave hash chain length: %g", ave);