diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-01-10 00:02:01 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-01-10 00:02:01 +0100 |
commit | 05c51d5dfb58549e5bf26cb5c8b9b4f0083dca25 (patch) | |
tree | f546943247bf700ce77ca86712900f7133ac679a /desktop/unx | |
parent | 8d7e1a6e13008bd7d35896e676796196038f1105 (diff) |
Some cppcheck cleaning
Diffstat (limited to 'desktop/unx')
-rw-r--r-- | desktop/unx/source/file_image_unx.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop/unx/source/file_image_unx.c b/desktop/unx/source/file_image_unx.c index 078585f097f7..fe3384b0e137 100644 --- a/desktop/unx/source/file_image_unx.c +++ b/desktop/unx/source/file_image_unx.c @@ -90,6 +90,7 @@ int file_image_pagein (file_image * image) file_image w; long s; size_t k; + // force touching of each page despite the optimizer volatile char c = 0; if (image == 0) @@ -116,8 +117,6 @@ int file_image_pagein (file_image * image) if (w.m_size > 0) { c ^= ((char*)(w.m_base))[0]; - w.m_base = (char*)(w.m_base) + w.m_size; - w.m_size -= w.m_size; } return (0); |