summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-09-11 14:08:48 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-09-11 14:08:48 +0200
commitfadd7e8aa66dad627acfb59c4310ddc4afa6742e (patch)
tree24fa918d0e597c7f16464faefdd34d30d797475f /sal
parentf0b57c30fdb5ecdd25879844159b9038399bc6de (diff)
-Werror,-Wformat
Change-Id: Iae7da0146c670d77a4bdc2431a55c901318eef8d
Diffstat (limited to 'sal')
-rw-r--r--sal/qa/inc/valueequal.hxx2
-rw-r--r--sal/qa/rtl/oustring/rtl_OUString2.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sal/qa/inc/valueequal.hxx b/sal/qa/inc/valueequal.hxx
index 752a875e8058..2f39594529a6 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 3fd8eba3a3bb..fb86b08c4950 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
}