mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 23:34:06 +00:00
Eliminate some compiler warnings (in Release mode).
This commit is contained in:
parent
078c326252
commit
05070b4fc8
|
@ -445,7 +445,9 @@ ArticleDom::ArticleDom( wstring const & str ):
|
||||||
stack.pop_back();
|
stack.pop_back();
|
||||||
|
|
||||||
if ( stack.size() )
|
if ( stack.size() )
|
||||||
|
{
|
||||||
FDPRINTF( stderr, "Warning: %u tags were unclosed.\n", (unsigned) stack.size() );
|
FDPRINTF( stderr, "Warning: %u tags were unclosed.\n", (unsigned) stack.size() );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ArticleDom::closeTag( wstring const & name,
|
void ArticleDom::closeTag( wstring const & name,
|
||||||
|
|
|
@ -151,7 +151,9 @@ void MediaWikiWordSearchRequest::cancel()
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
DPRINTF("not long enough\n" );
|
DPRINTF("not long enough\n" );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MediaWikiWordSearchRequest::downloadFinished()
|
void MediaWikiWordSearchRequest::downloadFinished()
|
||||||
|
|
4
xdxf.cc
4
xdxf.cc
|
@ -1102,8 +1102,10 @@ vector< sptr< Dictionary::Class > > makeDictionaries(
|
||||||
chunks.addToBlock( n.data(), n.size() );
|
chunks.addToBlock( n.data(), n.size() );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
DPRINTF( "Warning: duplicate full_name in %s\n", dictFiles[ 0 ].c_str() );
|
DPRINTF( "Warning: duplicate full_name in %s\n", dictFiles[ 0 ].c_str() );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
if ( stream.name() == "description" )
|
if ( stream.name() == "description" )
|
||||||
{
|
{
|
||||||
|
@ -1121,8 +1123,10 @@ vector< sptr< Dictionary::Class > > makeDictionaries(
|
||||||
chunks.addToBlock( n.data(), n.size() );
|
chunks.addToBlock( n.data(), n.size() );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
DPRINTF( "Warning: duplicate description in %s\n", dictFiles[ 0 ].c_str() );
|
DPRINTF( "Warning: duplicate description in %s\n", dictFiles[ 0 ].c_str() );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
if ( stream.name() == "abbreviations" )
|
if ( stream.name() == "abbreviations" )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue