diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-03-07 11:04:02 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-03-07 11:06:47 +0000 |
commit | 9656a1549512ddc2b1a69d4e5bb6c791dede1534 (patch) | |
tree | aee50751472242dd69746053c8ede1b40a61c6be /sdext | |
parent | attachmentid should be stable across mime-type changes (diff) | |
download | core-9656a1549512ddc2b1a69d4e5bb6c791dede1534.tar.gz core-9656a1549512ddc2b1a69d4e5bb6c791dede1534.zip |
WaE: various higher debug level compile time warnings
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/pdfimport/pdfparse/pdfentries.cxx | 6 | ||||
-rw-r--r-- | sdext/source/pdfimport/pdfparse/pdfparse.cxx | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sdext/source/pdfimport/pdfparse/pdfentries.cxx b/sdext/source/pdfimport/pdfparse/pdfentries.cxx index 1283d10f05bc..742407dd0e2d 100644 --- a/sdext/source/pdfimport/pdfparse/pdfentries.cxx +++ b/sdext/source/pdfimport/pdfparse/pdfentries.cxx @@ -1423,9 +1423,9 @@ PDFFileImplData* PDFFile::impl_getData() const PDFNumber* pNum = dynamic_cast<PDFNumber*>(p_ent->second); if( pNum ) m_pData->m_nPEntry = static_cast<sal_uInt32>(static_cast<sal_Int32>(pNum->m_fValue)); - #if OSL_DEBUG_LEVEL > 1 - fprintf( stderr, "p entry is %p\n", (void*)m_pData->m_nPEntry ); - #endif + #if OSL_DEBUG_LEVEL > 1 + fprintf( stderr, "p entry is %" SAL_PRIxUINT32 "\n", m_pData->m_nPEntry ); + #endif } #if OSL_DEBUG_LEVEL > 1 fprintf( stderr, "Encryption dict: sec handler: %s, version = %d, revision = %d, key length = %d\n", diff --git a/sdext/source/pdfimport/pdfparse/pdfparse.cxx b/sdext/source/pdfimport/pdfparse/pdfparse.cxx index 32dc0efa9293..1b350af69f00 100644 --- a/sdext/source/pdfimport/pdfparse/pdfparse.cxx +++ b/sdext/source/pdfimport/pdfparse/pdfparse.cxx @@ -652,20 +652,20 @@ PDFEntry* PDFReader::read( const char* pFileName ) aGrammar, boost::spirit::space_p ); #if OSL_DEBUG_LEVEL > 1 - fprintf( stderr, "parseinfo: stop at offset = %d, hit = %s, full = %s, length = %d\n", + fprintf( stderr, "parseinfo: stop at offset = %ld, hit = %s, full = %s, length = %lu\n", aInfo.stop - file_start, aInfo.hit ? "true" : "false", aInfo.full ? "true" : "false", - (int)aInfo.length ); + aInfo.length ); #endif } catch( const parser_error< const char*, file_iterator<> >& rError ) { #if OSL_DEBUG_LEVEL > 1 - fprintf( stderr, "parse error: %s at buffer pos %u\nobject stack:\n", + fprintf( stderr, "parse error: %s at buffer pos %lu\nobject stack:\n", rError.descriptor, rError.where - file_start ); - unsigned int nElem = aGrammar.m_aObjectStack.size(); - for( unsigned int i = 0; i < nElem; i++ ) + size_t nElem = aGrammar.m_aObjectStack.size(); + for( size_t i = 0; i < nElem; ++i ) { fprintf( stderr, " %s\n", typeid( *(aGrammar.m_aObjectStack[i]) ).name() ); } |