diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index 63844aa770..974ab5e80a 100644
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -5659,13 +5659,15 @@ bool LLVOAvatar::updateCharacter(LLAgent &agent)
bool visible = isVisible();
bool is_control_avatar = isControlAvatar(); // capture state to simplify tracing
- bool is_attachment = false;
+ // bool is_attachment = false; // Set but not used
- if (is_control_avatar)
- {
- LLControlAvatar *cav = dynamic_cast(this);
- is_attachment = cav && cav->mRootVolp && cav->mRootVolp->isAttachment(); // For attached animated objects
- }
+ // Set but not used
+ // if (is_control_avatar)
+ // {
+ // LLControlAvatar *cav = dynamic_cast(this);
+ // is_attachment = cav && cav->mRootVolp && cav->mRootVolp->isAttachment(); // For attached animated objects
+ // }
+ //
// For fading out the names above heads, only let the timer
// run if we're visible.