Kaydet (Commit) 9656a154 authored tarafından Caolán McNamara's avatar Caolán McNamara

WaE: various higher debug level compile time warnings

üst cf0373b4
......@@ -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",
......
......@@ -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() );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment