Closed Bug 229866 Opened 21 years ago Closed 21 years ago

Turn off non-virtual destructor warnings

Categories

(SeaMonkey :: Build Config, defect)

x86
Linux
defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bryner, Assigned: bryner)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

With the compiler flags we use, gcc issues a warning in many cases if you define
a class that has virtual functions but does not have a virtual destructor.  This
causes bogus warnings (quite a few, with another patch I'm working on), and in
general isn't useful for most of the code in our tree.

Some classes probably unnecessarily define virtual destructors just to quiet the
compiler, too... a virtual destructor is only needed if your object could be
deleted through a base class pointer.
Attached patch patchSplinter Review
Attachment #138263 - Flags: review?(dbaron)
Comment on attachment 138263 [details] [diff] [review]
patch

r=dbaron.  See also the discussion in bug 113192.
Attachment #138263 - Flags: review?(dbaron) → review+
checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
This patch got rid of 15 "'class xxx' has virtual functions but non-virtual
destructor" 'Blamed Build Warnings; Linux brad Clobber' :-)
Blocks: buildwarning
Severity: normal → trivial
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: