Closed Bug 197049 Opened 17 years ago Closed 8 years ago

Compiler warnings in <nsHashtable.h>: "should be explicitly initialized in the copy constructor"

Categories

(Core :: XPCOM, defect)

x86
Linux
defect
Not set

Tracking

()

RESOLVED WORKSFORME
mozilla1.5alpha

People

(Reporter: tenthumbs, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: helpwanted, Whiteboard: [build_warning])

In a Linux build from this morning using gcc 3.2.2, I get these warnings.

 dist/include/xpcom/nsHashtable.h:219: warning: base class `class nsHashKey' \
   should be explicitly initialized in the copy constructor

 dist/include/xpcom/nsHashtable.h:288: warning: base class `class nsHashKey' \
   should be explicitly initialized in the copy constructor

 dist/include/xpcom/nsHashtable.h:327: warning: base class `class nsHashKey' \
   should be explicitly initialized in the copy constructor

Since this file is used in many places there are 402 instances of each warning.
I don't know how important this is.
-> alecf
Assignee: dougt → alecf
I welcome any patches here.
Status: NEW → ASSIGNED
Keywords: helpwanted
Target Milestone: --- → mozilla1.5alpha
Blocks: buildwarning
Summary: Compiler warnings in nsHashtable.h → Compiler warnings in <nsHashtable.h>: "should be explicitly initialized in the copy constructor"
I'm not an expert in these things, but tinderbox Linux brad Clbr runs gcc 3.3
and seems not to issue those warnings.
Can anybody confirm this or the existence of those warnings?
Assignee: alecf → nobody
Status: ASSIGNED → NEW
QA Contact: scc → xpcom
Whiteboard: [build_warning]
I could not see any warning in nsHashtable.h file anymore. Also I searched for warning in nightly builds of mac, windows and linux and could not find one. Hence closing this bug.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.