Menu

problem compiling latest public on gcc 3.3

Developer
2004-07-12
2004-07-19
  • John Bellone

    John Bellone - 2004-07-12

    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.

     
    • Ellers

      Ellers - 2004-07-12

      Aren't they all warnings? If so, ignore them.
      Its not a great habit to ignore warnings, but they look fairly minor?

       
    • John Bellone

      John Bellone - 2004-07-12

      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.

       
    • Lee Thomason

      Lee Thomason - 2004-07-19

      I added a bug - thanks!
      lee

       

Log in to post a comment.

MongoDB Logo MongoDB