[Asterisk-cvs] asterisk/channels chan_zap.c,1.531,1.532

russell russell
Thu Oct 20 12:56:38 CDT 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv22400/channels

Modified Files:
	chan_zap.c 
Log Message:
silence compiler warnings when ZT_TONEDETECT is not defined (issue #5470)


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.531
retrieving revision 1.532
diff -u -d -r1.531 -r1.532
--- chan_zap.c	14 Oct 2005 17:02:20 -0000	1.531
+++ chan_zap.c	20 Oct 2005 16:50:18 -0000	1.532
@@ -2917,7 +2917,9 @@
 
 static void disable_dtmf_detect(struct zt_pvt *p)
 {
+#ifdef ZT_TONEDETECT
 	int val;
+#endif
 
 	p->ignoredtmf = 1;
 
@@ -2930,7 +2932,9 @@
 
 static void enable_dtmf_detect(struct zt_pvt *p)
 {
+#ifdef ZT_TONEDETECT
 	int val;
+#endif
 
 	p->ignoredtmf = 0;
 




More information about the svn-commits mailing list