[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-c-dev
Subject:    DO NOT REPLY [Bug 17524] New:  -
From:       bugzilla () apache ! org
Date:       2003-02-28 13:10:31
[Download RAW message or body]

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: xerces-c-dev@xml.apache.org
        ReportedBy: fred@working-software.com


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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic