[Libreoffice-commits] .: desktop/unx

Julien Nabet serval2412 at kemper.freedesktop.org
Mon Jan 9 15:02:42 PST 2012


 desktop/unx/source/file_image_unx.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 05c51d5dfb58549e5bf26cb5c8b9b4f0083dca25
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Tue Jan 10 00:02:01 2012 +0100

    Some cppcheck cleaning

diff --git a/desktop/unx/source/file_image_unx.c b/desktop/unx/source/file_image_unx.c
index 078585f..fe3384b 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);


More information about the Libreoffice-commits mailing list