I'm attempting to integrate TinyXML 2.3.1 into my MUD engine, the system is currently running Fendora Core 2 with GCC 3.3.
Here's the build errors I'm getting:
tinyxml/tinyxml.h: In static member function `static const char*
TiXmlBase::GetChar(const char*, char*, int*, TiXmlEncoding)':
tinyxml/tinyxml.h:237: warning: cast from `const char*' to `unsigned char*'
discards qualifiers from pointer target type
tinyxml/tinyxml.h: In member function `TiXmlDocument* TiXmlNode::ToDocument()
const':
tinyxml/tinyxml.h:574: warning: cast from `const TiXmlNode* const' to `
TiXmlDocument*' discards qualifiers from pointer target type
tinyxml/tinyxml.h: In member function `TiXmlElement* TiXmlNode::ToElement()
const':
tinyxml/tinyxml.h:575: warning: cast from `const TiXmlNode* const' to `
TiXmlElement*' discards qualifiers from pointer target type
tinyxml/tinyxml.h: In member function `TiXmlComment* TiXmlNode::ToComment()
const':
tinyxml/tinyxml.h:576: warning: cast from `const TiXmlNode* const' to `
TiXmlComment*' discards qualifiers from pointer target type
tinyxml/tinyxml.h: In member function `TiXmlUnknown* TiXmlNode::ToUnknown()
const':
tinyxml/tinyxml.h:577: warning: cast from `const TiXmlNode* const' to `
TiXmlUnknown*' discards qualifiers from pointer target type
tinyxml/tinyxml.h: In member function `TiXmlText* TiXmlNode::ToText() const':
tinyxml/tinyxml.h:578: warning: cast from `const TiXmlNode* const' to `
TiXmlText*' discards qualifiers from pointer target type
tinyxml/tinyxml.h: In member function `TiXmlDeclaration*
TiXmlNode::ToDeclaration() const':
tinyxml/tinyxml.h:579: warning: cast from `const TiXmlNode* const' to `
TiXmlDeclaration*' discards qualifiers from pointer target type
I haven't attempted to try to hack it up myself and fix, wanted to know if there was a patch or something floating around before I messed around with it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm attempting to integrate TinyXML 2.3.1 into my MUD engine, the system is currently running Fendora Core 2 with GCC 3.3.
Here's the build errors I'm getting:
tinyxml/tinyxml.h: In static member function `static const char*
TiXmlBase::GetChar(const char*, char*, int*, TiXmlEncoding)':
tinyxml/tinyxml.h:237: warning: cast from `const char*' to `unsigned char*'
discards qualifiers from pointer target type
tinyxml/tinyxml.h: In member function `TiXmlDocument* TiXmlNode::ToDocument()
const':
tinyxml/tinyxml.h:574: warning: cast from `const TiXmlNode* const' to `
TiXmlDocument*' discards qualifiers from pointer target type
tinyxml/tinyxml.h: In member function `TiXmlElement* TiXmlNode::ToElement()
const':
tinyxml/tinyxml.h:575: warning: cast from `const TiXmlNode* const' to `
TiXmlElement*' discards qualifiers from pointer target type
tinyxml/tinyxml.h: In member function `TiXmlComment* TiXmlNode::ToComment()
const':
tinyxml/tinyxml.h:576: warning: cast from `const TiXmlNode* const' to `
TiXmlComment*' discards qualifiers from pointer target type
tinyxml/tinyxml.h: In member function `TiXmlUnknown* TiXmlNode::ToUnknown()
const':
tinyxml/tinyxml.h:577: warning: cast from `const TiXmlNode* const' to `
TiXmlUnknown*' discards qualifiers from pointer target type
tinyxml/tinyxml.h: In member function `TiXmlText* TiXmlNode::ToText() const':
tinyxml/tinyxml.h:578: warning: cast from `const TiXmlNode* const' to `
TiXmlText*' discards qualifiers from pointer target type
tinyxml/tinyxml.h: In member function `TiXmlDeclaration*
TiXmlNode::ToDeclaration() const':
tinyxml/tinyxml.h:579: warning: cast from `const TiXmlNode* const' to `
TiXmlDeclaration*' discards qualifiers from pointer target type
I haven't attempted to try to hack it up myself and fix, wanted to know if there was a patch or something floating around before I messed around with it.
Aren't they all warnings? If so, ignore them.
Its not a great habit to ignore warnings, but they look fairly minor?
I don't want to get into the habits of ignoring warnings.
Anyway, my Makefile is setup to be as strict as possible, all warnings are treated as errors.
I added a bug - thanks!
lee