From e0944a6fc96178644a4d34af3e126a430f56627e Mon Sep 17 00:00:00 2001
From: Russell Bryant <russell@russellbryant.com>
Date: Mon, 29 Jan 2007 20:47:43 +0000
Subject: [PATCH] Resolve some warnings when not building with IMAP_STORAGE

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@52612 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 apps/app_voicemail.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index c8d6102c8c..2b00e9b082 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -4090,9 +4090,11 @@ static int forward_message(struct ast_channel *chan, char *context, struct vm_st
 
 		/* Forward VoiceMail */
 		long duration = 0;
+#ifdef IMAP_STORAGE
 		char *myserveremail = serveremail;
 		char buf[1024] = "";
 		int attach_user_voicemail = ast_test_flag((&globalflags), VM_ATTACH);
+#endif
  		RETRIEVE(dir, curmsg);
 		cmd = vm_forwardoptions(chan, sender, dir, curmsg, vmfmts, S_OR(context, "default"), record_gain, &duration, vms);
 		if (!cmd) {
-- 
GitLab