mirror of https://github.com/AxioDL/tinyxml2.git
fix some warnings
This commit is contained in:
parent
7d00b9ab95
commit
0a4df4019c
|
@ -1066,8 +1066,8 @@ public:
|
||||||
// internal
|
// internal
|
||||||
char* Identify( char* p, XMLNode** node );
|
char* Identify( char* p, XMLNode** node );
|
||||||
|
|
||||||
virtual XMLNode* ShallowClone( XMLDocument* document ) const { return 0; }
|
virtual XMLNode* ShallowClone( XMLDocument* ) const { return 0; }
|
||||||
virtual bool ShallowEqual( const XMLNode* compare ) const { return false; }
|
virtual bool ShallowEqual( const XMLNode* ) const { return false; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
XMLDocument( const XMLDocument& ); // not supported
|
XMLDocument( const XMLDocument& ); // not supported
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#if defined( _MSC_VER )
|
#if defined( _MSC_VER ) && defined( DEBUG )
|
||||||
#include <crtdbg.h>
|
#include <crtdbg.h>
|
||||||
_CrtMemState startMemState;
|
_CrtMemState startMemState;
|
||||||
_CrtMemState endMemState;
|
_CrtMemState endMemState;
|
||||||
|
@ -71,7 +71,7 @@ void NullLineEndings( char* p )
|
||||||
|
|
||||||
int main( int /*argc*/, const char* /*argv*/ )
|
int main( int /*argc*/, const char* /*argv*/ )
|
||||||
{
|
{
|
||||||
#if defined( _MSC_VER )
|
#if defined( _MSC_VER ) && defined( DEBUG )
|
||||||
_CrtMemCheckpoint( &startMemState );
|
_CrtMemCheckpoint( &startMemState );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -521,6 +521,7 @@ int main( int /*argc*/, const char* /*argv*/ )
|
||||||
doc.Parse( doctype );
|
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)
|
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 );
|
XMLTest( "Clone and Equal", 4, count );
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined( _MSC_VER )
|
#if defined( _MSC_VER ) && defined( DEBUG )
|
||||||
_CrtMemCheckpoint( &endMemState );
|
_CrtMemCheckpoint( &endMemState );
|
||||||
//_CrtMemDumpStatistics( &endMemState );
|
//_CrtMemDumpStatistics( &endMemState );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue