Resolve some warnings when not building with IMAP_STORAGE
authorRussell Bryant <russell@russellbryant.com>
Mon, 29 Jan 2007 20:47:43 +0000 (20:47 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 29 Jan 2007 20:47:43 +0000 (20:47 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@52612 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index c8d6102..2b00e9b 100644 (file)
@@ -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) {