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)
Core
Graphics: Layers
Tracking
()
RESOLVED
FIXED
mozilla29
People
(Reporter: dholbert, Assigned: dholbert)
References
(Blocks 1 open bug)
Details
(Whiteboard: [qa-])
Attachments
(1 file)
1.14 KB,
patch
|
nical
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8357385 -
Flags: review?(nical.bugzilla)
Updated•11 years ago
|
Attachment #8357385 -
Flags: review?(nical.bugzilla) → review+
Assignee | ||
Comment 2•11 years ago
|
||
Flags: in-testsuite-
Assignee | ||
Updated•11 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Updated•11 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•