Closed Bug 957783 Opened 11 years ago Closed 11 years ago

opt-only build warning: "CompositableTransactionParent.cpp:238:25: warning: unused variable 'compositable' [-Wunused-variable]"

Categories

(Core :: Graphics: Layers, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: dholbert, Assigned: dholbert)

References

(Blocks 1 open bug)

Details

(Whiteboard: [qa-])

Attachments

(1 file)

Opt-only build warning: { ../../../gfx/layers/ipc/CompositableTransactionParent.cpp: In member function 'bool mozilla::layers::CompositableParentManager::ReceiveCompositableUpdate(const mozilla::layers::CompositableOperation&, mozilla::layers::EditReplyVector&)': ../../../gfx/layers/ipc/CompositableTransactionParent.cpp:238:25: warning: unused variable 'compositable' [-Wunused-variable] } The code: > 238 CompositableHost* compositable = AsCompositable(op); > 239 MOZ_ASSERT(compositable); > 240 RefPtr<TextureHost> texture = TextureHost::AsTextureHost(op.textureParent()); (compositable is never used aside from being asserted about) It looks like it was originally used, when it was added -- before bug 897452, we had "compositable->GetTextureHost()" on line 240, instead of TextureHost::AsTextureHost(). That changed here: http://hg.mozilla.org/mozilla-central/diff/969cfcbb1c9c/gfx/layers/ipc/CompositableTransactionParent.cpp#l1.89 leaving the variable unused. It probably just wants to be dropped.
Depends on: 957784
Attachment #8357385 - Flags: review?(nical.bugzilla)
Attachment #8357385 - Flags: review?(nical.bugzilla) → review+
Blocks: 957784
No longer depends on: 957784
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: