diff --git a/res/res_agi.c b/res/res_agi.c
index d7d9bf52ca2d9fdc885adb6f6528a5e21cd772d8..d8bca507cd750dc382ebde0303d89b8ca05dcdb6 100644
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -2090,7 +2090,6 @@ static int agi_exec_full(struct ast_channel *chan, void *data, int enhanced, int
 	AST_DECLARE_APP_ARGS(args,
 		AST_APP_ARG(arg)[MAX_ARGS];
 	);
-	__attribute__((unused))char *empty = NULL;
 	AGI agi;
 
 	if (ast_strlen_zero(data)) {