Closed
Bug 475750
Opened 16 years ago
Closed 15 years ago
Generate warnings for out-of-order initialization where possible
Categories
(Tamarin Graveyard :: Virtual Machine, defect)
Tamarin Graveyard
Virtual Machine
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: lhansen, Assigned: lhansen)
Details
Attachments
(2 obsolete files)
The order of member variables in the intialization list for few classes is different than the order of their declaration. Some compilers give warnings for such code (which is buggy in sinister way), but some don't, by default. We need to change our settings for the reference versions of gcc and msvc so that warnings are generated for this problem.
Assignee | ||
Comment 1•15 years ago
|
||
-Wreorder in gcc
Assignee | ||
Comment 2•15 years ago
|
||
Bizarrely this is turned off in configure.py: -Wno-reorder. That's just wrong, these are real bugs waiting to happen. Turning it on in Xcode results in warnings in about 10 files, it's not unreasonable to fix this.
Assignee | ||
Updated•15 years ago
|
Assignee: nobody → lhansen
OS: Mac OS X → All
Assignee | ||
Comment 3•15 years ago
|
||
Attachment #371210 -
Flags: review?(edwsmith)
Assignee | ||
Comment 4•15 years ago
|
||
Attachment #371229 -
Flags: review?(edwsmith)
Updated•15 years ago
|
Attachment #371210 -
Flags: review?(edwsmith) → review+
Updated•15 years ago
|
Attachment #371229 -
Flags: review?(edwsmith) → review+
Assignee | ||
Comment 5•15 years ago
|
||
Comment on attachment 371210 [details] [diff] [review] Fix for Xcode and cross-platform build redux changeset: 1675:88d0e0730e41
Attachment #371210 -
Attachment is obsolete: true
Assignee | ||
Comment 6•15 years ago
|
||
Comment on attachment 371229 [details] [diff] [review] Fix warnings introduced by turning on -Wreorder (Xcode) redux changeset: 1676:0bb02b1f0c8c
Attachment #371229 -
Attachment is obsolete: true
Assignee | ||
Comment 7•15 years ago
|
||
Approx 10 minutes of searching leads to the conclusion that Visual Studio does not have a warning switch like -Wreorder. I could have sworn that Visual C++ version 6 did, but that's a long time ago and my memory may be faulty.
Updated•15 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•