[ http://nagoya.apache.org/jira/browse/XERCESC-968?page=history ]
Alberto Massari updated XERCESC-968:
------------------------------------
Priority: Major
> Warnings from AbstractDOMParser.hpp when compiling on HP
> --------------------------------------------------------
>
> Key: XERCESC-968
> URL: http://nagoya.apache.org/jira/browse/XERCESC-968
> Project: Xerces-C++
> Type: Bug
> Components: Non-Validating Parser
> Versions: 2.2.0
> Environment: Operating System: Other
> Platform: HP
> Reporter: John Hibbert
> Assignee: Xerces-C Developers Mailing List
>
> I get the following warnings when compiling on HP:
> Warning 749: "AbstractDOMParser.hpp", line 1533 # The cast
> from 'xercesc_2_2::DOMDocument *' to 'xercesc_2_2::DOMDocumentImpl *' is
> performed as a 'reinterpret_cast'. This operation is non-portable and
> potentially unsafe.
> Warning 740: "AbstractDOMParser.hpp", line 1533 # Unsafe cast between
> pointers/references to incomplete classes: casting 'xercesc_2_2::DOMDocument
> *' to 'xercesc_2_2::DOMDocumentImpl *'.
> This corresponds to the following code:
> inline void AbstractDOMParser::setDocument(DOMDocument* toSet)
> {
> fDocument = (DOMDocumentImpl *) toSet; // this is line 1533
> }
> The problem is that although DOMDocumentImpl inherits from DOMDocument,
> this header does not know that (DOMDocumentImpl is only specified with
> a forward declaration) and so a reinterpret_cast has to be used.
> The reinterpret_cast can be avoided if the DOMDocumentImpl.hpp header
> is included.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]