diff --git a/indra/newview/llgesturemgr.cpp b/indra/newview/llgesturemgr.cpp
index ce00bf3a5488da405acacbec964745baece3be9a..3679b0b73d7fe835d58aa3fdb896fd5def6bc926 100644
--- a/indra/newview/llgesturemgr.cpp
+++ b/indra/newview/llgesturemgr.cpp
@@ -934,7 +934,6 @@ void LLGestureMgr::stepGesture(LLMultiGesture* gesture)
 		if (gesture->mWaitingKeyRelease)
 		{
 			// We're waiting for a certain amount of time to pass
-			LLGestureStepWait* wait_step = (LLGestureStepWait*)step;
 			if (gesture->mKeyReleased)
 			{
 				// wait is done, continue execution