Closed Bug 593922 Opened 14 years ago Closed 14 years ago

Unused variable and initializer ordering compiler warnings with wasPreloadNone, mPreloadAction

Categories

(Core :: Audio/Video, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: cajbir, Assigned: cpearce)

Details

Attachments

(1 file)

Bug 548523 landed introducing these compiler warnings: content/html/content/src/nsHTMLMediaElement.cpp: In member function ‘void nsHTMLMediaElement::UpdatePreloadAction()’: content/html/content/src/nsHTMLMediaElement.cpp:874: warning: unused variable ‘wasPreloadNone’ ../../../../dist/include/nsHTMLMediaElement.h: In constructor ‘nsHTMLMediaElement::nsHTMLMediaElement(already_AddRefed<nsINodeInfo>, PRUint32)’: ../../../../dist/include/nsHTMLMediaElement.h:677: warning: ‘nsHTMLMediaElement::mShuttingDown’ will be initialized after ../../../../dist/include/nsHTMLMediaElement.h:577: warning: ‘nsHTMLMediaElement::PreloadAction nsHTMLMediaElement::mPreloadAction’ content/html/content/src/nsHTMLMediaElement.cpp:1270: warning: when initialized here See bug 548523 comment 24 where they were mentioned but must have been missed when the bug was re-landed.
Attached patch Patch (deleted) — Splinter Review
Assignee: nobody → chris
Attachment #473925 - Flags: review?(chris.double)
Attachment #473925 - Flags: review?(chris.double) → review+
Comment on attachment 473925 [details] [diff] [review] Patch Requesting approval2.0 for this patch. It's a safe patch to take.
Attachment #473925 - Flags: approval2.0?
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: