DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17524>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17524

copy constructor warning, missing base class initialization

           Summary: copy constructor warning, missing base class
                    initialization
           Product: Xerces-C++
           Version: 2.2.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: DOM
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Compiling a DOM application with gcc 3.2 using the -W option results in
warnings of the following type:

  class `class xercesc_2_2::DOM<...>' should be explicitly initialized in the 
   copy constructor

where "DOM<...>" is the base class from which the offending class was derived.
 
You can see this by editing the DOMPrint/Makefile and changing the CXXFLAGS -w
to -W and building the sample.  In that case the following headers generate the
warning.

DOMAttr.hpp
DOMCharacterData.hpp
DOMText.hpp
DOMCDATASection.hpp
DOMComment.hpp
DOMDocument.hpp
DOMDocumentFragment.hpp
DOMDocumentType.hpp
DOMElement.hpp
DOMEntity.hpp
DOMEntityReference.hpp
DOMImplementation.hpp
DOMNotation.hpp
DOMProcessingInstruction.hpp
DOMWriterFilter.hpp

The warnings all look harmless, none of the base classes appear to
have any data to initialize. But the fix seems pretty simple
(add an explicit argument reference and pass it to the base class copy 
constructor(s)).

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to