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 <t...@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
_______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice