[Libreoffice-commits] core.git: sal/qa

Stephan Bergmann sbergman at redhat.com
Wed Sep 11 05:09:07 PDT 2013


 sal/qa/inc/valueequal.hxx             |    2 +-
 sal/qa/rtl/oustring/rtl_OUString2.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit fadd7e8aa66dad627acfb59c4310ddc4afa6742e
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Sep 11 14:08:48 2013 +0200

    -Werror,-Wformat
    
    Change-Id: Iae7da0146c670d77a4bdc2431a55c901318eef8d

diff --git a/sal/qa/inc/valueequal.hxx b/sal/qa/inc/valueequal.hxx
index 752a875..2f39594 100644
--- a/sal/qa/inc/valueequal.hxx
+++ b/sal/qa/inc/valueequal.hxx
@@ -71,7 +71,7 @@ bool is_equal(T x, T y, sal_Int16 _nPrec)
     sal_Int32 nPrecOfN = -nPRECISION + nBeforeDot;
 
     if (_nPrec != PREC_long_double)
-        printf("nPrecOfN is  %d\n", nPrecOfN);
+        printf("nPrecOfN is  %" SAL_PRIdINT32 "\n", nPrecOfN);
 
     double nPrec = pow(0.1, -nPrecOfN);
 
diff --git a/sal/qa/rtl/oustring/rtl_OUString2.cxx b/sal/qa/rtl/oustring/rtl_OUString2.cxx
index 3fd8eba..fb86b08 100644
--- a/sal/qa/rtl/oustring/rtl_OUString2.cxx
+++ b/sal/qa/rtl/oustring/rtl_OUString2.cxx
@@ -862,7 +862,7 @@ public:
                 rtl::OUString suToken = suTokenStr.getToken( 0, ';', nIndex );
             }
             while ( nIndex >= 0 );
-            printf("Index %d\n", nIndex);
+            printf("Index %" SAL_PRIdINT32 "\n", nIndex);
             // should not GPF
         }
 


More information about the Libreoffice-commits mailing list