Hi,
I got a following warning in the build of sw:
---
Compiling: sw/source/filter/ww8/ww8par.cxx
/home/tabe/libo/clone/writer/sw/source/filter/ww8/ww8par.cxx: In member function 'virtual void
Sttb::Print(FILE*)':
/home/tabe/libo/clone/writer/sw/source/filter/ww8/ww8par.cxx:216: warning: format '%x' expects type
'unsigned int', but argument 3 has type 'sal_uInt32'
---
The attached one just suppresses it.
Cheers,
-- Takeshi Abe
From 8262590d08eb767ada06ef3131fb57e18819b632 Mon Sep 17 00:00:00 2001
From: Takeshi Abe <tabe@fixedpoint.jp>
Date: Sat, 11 Dec 2010 00:24:01 +0900
Subject: [PATCH] SAL_PRIxUINT32 instead of bare %x
---
sw/source/filter/ww8/ww8par.cxx | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index 4a333f4..801cc2f 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -213,7 +213,7 @@ bool Sttb::Read( SvStream* pS )
void Sttb::Print( FILE* fp )
{
- fprintf( fp, "[ 0x%x ] Sttb - dump\n", nOffSet);
+ fprintf( fp, "[ 0x%" SAL_PRIxUINT32 " ] Sttb - dump\n", nOffSet);
fprintf( fp, " fExtend 0x%x [expected 0xFFFF ]\n", fExtend );
fprintf( fp, " cData no. or string data items %d (0x%x)\n", cData, cData );
--
1.7.2.3
Context
- [Libreoffice] [PATCH] SAL_PRIxUINT32 instead of bare %x · Takeshi Abe
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.