diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c
index f053b388e2608abce503051c5607c6d262365104..553cfb4ff213c7a2d95108c995f179b3710bf22c 100644
--- a/apps/app_chanspy.c
+++ b/apps/app_chanspy.c
@@ -734,7 +734,6 @@ static int common_exec(struct ast_channel *chan, struct ast_flags *flags,
 	char *ptr;
 	int num;
 	int num_spyed_upon = 1;
-	int hangup = 0;
 	struct ast_channel_iterator *iter = NULL;
 
 	if (ast_test_flag(flags, OPTION_EXIT)) {