silence compiler warnings when ZT_TONEDETECT is not defined (issue #5470)
authorRussell Bryant <russell@russellbryant.com>
Thu, 20 Oct 2005 16:50:18 +0000 (16:50 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 20 Oct 2005 16:50:18 +0000 (16:50 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6835 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index eac9c21..223eaa8 100755 (executable)
@@ -2917,7 +2917,9 @@ static void zt_link(struct zt_pvt *slave, struct zt_pvt *master) {
 
 static void disable_dtmf_detect(struct zt_pvt *p)
 {
+#ifdef ZT_TONEDETECT
        int val;
+#endif
 
        p->ignoredtmf = 1;
 
@@ -2930,7 +2932,9 @@ static void disable_dtmf_detect(struct zt_pvt *p)
 
 static void enable_dtmf_detect(struct zt_pvt *p)
 {
+#ifdef ZT_TONEDETECT
        int val;
+#endif
 
        p->ignoredtmf = 0;