From 0a4df4019ca3571b9e23ca851be1ed40f3dd631c Mon Sep 17 00:00:00 2001 From: "Lee Thomason (grinliz)" Date: Mon, 27 Feb 2012 20:50:52 -0800 Subject: [PATCH] fix some warnings --- tinyxml2.h | 4 ++-- xmltest.cpp | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tinyxml2.h b/tinyxml2.h index 81f1ddd..d47384f 100644 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -1066,8 +1066,8 @@ public: // internal char* Identify( char* p, XMLNode** node ); - virtual XMLNode* ShallowClone( XMLDocument* document ) const { return 0; } - virtual bool ShallowEqual( const XMLNode* compare ) const { return false; } + virtual XMLNode* ShallowClone( XMLDocument* ) const { return 0; } + virtual bool ShallowEqual( const XMLNode* ) const { return false; } private: XMLDocument( const XMLDocument& ); // not supported diff --git a/xmltest.cpp b/xmltest.cpp index b3ffc2f..06df1e1 100644 --- a/xmltest.cpp +++ b/xmltest.cpp @@ -4,7 +4,7 @@ #include #include -#if defined( _MSC_VER ) +#if defined( _MSC_VER ) && defined( DEBUG ) #include _CrtMemState startMemState; _CrtMemState endMemState; @@ -71,7 +71,7 @@ void NullLineEndings( char* p ) int main( int /*argc*/, const char* /*argv*/ ) { - #if defined( _MSC_VER ) + #if defined( _MSC_VER ) && defined( DEBUG ) _CrtMemCheckpoint( &startMemState ); #endif @@ -521,6 +521,7 @@ int main( int /*argc*/, const char* /*argv*/ ) doc.Parse( doctype ); XMLTest( "Parsing repeated attributes.", ERROR_PARSING_ATTRIBUTE, doc.ErrorID() ); // is an error to tinyxml (didn't use to be, but caused issues) + doc.PrintError(); } { @@ -653,7 +654,7 @@ int main( int /*argc*/, const char* /*argv*/ ) XMLTest( "Clone and Equal", 4, count ); } - #if defined( _MSC_VER ) + #if defined( _MSC_VER ) && defined( DEBUG ) _CrtMemCheckpoint( &endMemState ); //_CrtMemDumpStatistics( &endMemState );