From 05070b4fc856d4f71b637eba0eeb8bb84149b664 Mon Sep 17 00:00:00 2001 From: Tvangeste Date: Mon, 4 Feb 2013 14:46:30 +0100 Subject: [PATCH] Eliminate some compiler warnings (in Release mode). --- dsl_details.cc | 2 ++ mediawiki.cc | 2 ++ xdxf.cc | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/dsl_details.cc b/dsl_details.cc index 1f434181..a4304da2 100644 --- a/dsl_details.cc +++ b/dsl_details.cc @@ -445,7 +445,9 @@ ArticleDom::ArticleDom( wstring const & str ): stack.pop_back(); if ( stack.size() ) + { FDPRINTF( stderr, "Warning: %u tags were unclosed.\n", (unsigned) stack.size() ); + } } void ArticleDom::closeTag( wstring const & name, diff --git a/mediawiki.cc b/mediawiki.cc index 2bb1b0d8..c563826f 100644 --- a/mediawiki.cc +++ b/mediawiki.cc @@ -151,7 +151,9 @@ void MediaWikiWordSearchRequest::cancel() finish(); } else + { DPRINTF("not long enough\n" ); + } } void MediaWikiWordSearchRequest::downloadFinished() diff --git a/xdxf.cc b/xdxf.cc index f92ec82f..4cd1b23e 100644 --- a/xdxf.cc +++ b/xdxf.cc @@ -1102,7 +1102,9 @@ vector< sptr< Dictionary::Class > > makeDictionaries( chunks.addToBlock( n.data(), n.size() ); } else + { DPRINTF( "Warning: duplicate full_name in %s\n", dictFiles[ 0 ].c_str() ); + } } else if ( stream.name() == "description" ) @@ -1121,7 +1123,9 @@ vector< sptr< Dictionary::Class > > makeDictionaries( chunks.addToBlock( n.data(), n.size() ); } else + { DPRINTF( "Warning: duplicate description in %s\n", dictFiles[ 0 ].c_str() ); + } } else if ( stream.name() == "abbreviations" )