Closed Bug 1092001 Opened 10 years ago Closed 10 years ago

Fix warnings in dom/tv and mark as FAIL_ON_WARNINGS

Categories

(Core :: DOM: Device Interfaces, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla36

People

(Reporter: cpeterson, Assigned: cpeterson)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached patch fix-tv-warnings.patch (deleted) — Splinter Review
This patch fixes the following clang warnings recently introduced in bug 998872 and marks the dom/tv directory as FAIL_ON_WARNINGS: > dom/tv/FakeTVService.cpp:229:397: error: deleting object of polymorphic class type 'mozilla::dom::EITBroadcastedCallback' which has non-virtual destructor might cause undefined behaviour [-Werror=delete-non-virtual-dtor] > dom/tv/FakeTVService.cpp:258:393: error: deleting object of polymorphic class type 'mozilla::dom::ScanCompleteCallback' which has non-virtual destructor might cause undefined behaviour [-Werror=delete-non-virtual-dtor] > dom/tv/TVListeners.cpp:15:1 [-Wdelete-non-virtual-dtor] delete called on 'mozilla::dom::TVSourceListener' that has virtual functions but non-virtual destructor > dom/tv/TVProgram.h:74:8 [-Wunused-private-field] private field 'mIsInterrupting' is not used Here's a green Try build: https://tbpl.mozilla.org/?tree=Try&rev=c8e3d4b360ec
Attachment #8514789 - Flags: review?(ehsan.akhgari)
Comment on attachment 8514789 [details] [diff] [review] fix-tv-warnings.patch Review of attachment 8514789 [details] [diff] [review]: ----------------------------------------------------------------- r=me sans the already fixed stuff. ::: dom/tv/TVListeners.h @@ +14,5 @@ > > namespace mozilla { > namespace dom { > > +class TVSourceListener MOZ_FINAL : public nsITVSourceListener I just fixed this on inbound. :-) ::: dom/tv/TVProgram.h @@ -70,5 @@ > uint64_t mStartTime; > uint64_t mDuration; > nsString mDescription; > nsString mRating; > - bool mIsInterrupting; This too.
Attachment #8514789 - Flags: review?(ehsan.akhgari) → review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: