Summary: | ASTERISK-05322: [patch] Variable initialization | ||
Reporter: | Curt Moore (jcmoore) | Labels: | |
Date Opened: | 2005-10-19 01:39:16 | Date Closed: | 2008-01-15 15:51:53.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Channels/chan_zap |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) chan_zap_compile_warnings.txt | |
Description: | gcc-3.4.3 complains since the variable "val" is initialzed but not used unless ZT_TONEDETECT is defined. Since the variable is only used if ZT_TONEDETECT is defined, move variable initialization into the ifdef block to quiet the compiler warning. | ||
Comments: | By: Russell Bryant (russell) 2005-10-20 12:56:53 fixed in cvs head with a slightly different patch, thanks! By: Digium Subversion (svnbot) 2008-01-15 15:51:53.000-0600 Repository: asterisk Revision: 6835 U trunk/channels/chan_zap.c ------------------------------------------------------------------------ r6835 | russell | 2008-01-15 15:51:53 -0600 (Tue, 15 Jan 2008) | 2 lines silence compiler warnings when ZT_TONEDETECT is not defined (issue ASTERISK-5322) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=6835 |