[Asterisk-cvs] asterisk/codecs/gsm/src decode.c, 1.16, 1.17 long_term.c, 1.16, 1.17 lpc.c, 1.16, 1.17 preprocess.c, 1.16, 1.17 rpe.c, 1.16, 1.17 short_term.c, 1.16, 1.17

kpfleming at lists.digium.com kpfleming at lists.digium.com
Thu Apr 21 01:39:43 CDT 2005


Update of /usr/cvsroot/asterisk/codecs/gsm/src
In directory mongoose.digium.com:/tmp/cvs-serv7113/codecs/gsm/src

Modified Files:
	decode.c long_term.c lpc.c preprocess.c rpe.c short_term.c 
Log Message:
fix various compiler warnings


Index: decode.c
===================================================================
RCS file: /usr/cvsroot/asterisk/codecs/gsm/src/decode.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- decode.c	12 Feb 2003 13:59:14 -0000	1.16
+++ decode.c	21 Apr 2005 06:30:23 -0000	1.17
@@ -22,7 +22,6 @@
 {
 	register int		k;
 	register word		msr = S->msr;
-	register longword	ltmp;	/* for GSM_ADD */
 	register word		tmp;
 
 	for (k = 160; k--; s++) {

Index: long_term.c
===================================================================
RCS file: /usr/cvsroot/asterisk/codecs/gsm/src/long_term.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- long_term.c	12 Feb 2003 13:59:14 -0000	1.16
+++ long_term.c	21 Apr 2005 06:30:23 -0000	1.17
@@ -852,7 +852,6 @@
  */
 {
 	register int      k;
-	register longword ltmp;
 
 #	undef STEP
 #	define STEP(BP)					\
@@ -921,7 +920,6 @@
  *  table 4.3b.
  */
 {
-	register longword	ltmp;	/* for ADD */
 	register int 		k;
 	word			brp, drpp, Nr;
 

Index: lpc.c
===================================================================
RCS file: /usr/cvsroot/asterisk/codecs/gsm/src/lpc.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- lpc.c	12 Feb 2003 13:59:14 -0000	1.16
+++ lpc.c	21 Apr 2005 06:30:23 -0000	1.17
@@ -211,7 +211,6 @@
 {
 	register int	i, m, n;
 	register word	temp;
-	register longword ltmp;
 	word		ACF[9];	/* 0..8 */
 	word		P[  9];	/* 0..8 */
 	word		K[  9]; /* 2..8 */
@@ -319,7 +318,6 @@
 )
 {
 	register word	temp;
-	longword	ltmp;
 
 
 	/*  This procedure needs four tables; the following equations

Index: preprocess.c
===================================================================
RCS file: /usr/cvsroot/asterisk/codecs/gsm/src/preprocess.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- preprocess.c	12 Feb 2003 13:59:14 -0000	1.16
+++ preprocess.c	21 Apr 2005 06:30:23 -0000	1.17
@@ -46,7 +46,6 @@
 
 	word		SO;
 
-	longword	ltmp;		/* for   ADD */
 	ulongword	utmp;		/* for L_ADD */
 
 	register int		k = 160;
@@ -86,7 +85,10 @@
 		/*   Execution of a 31 bv 16 bits multiplication
 		 */
 		{
-		word		msp, lsp;
+		word		msp;
+#ifndef __GNUC__ 
+		word		lsp;
+#endif
 		longword L_s2;
 		longword L_temp;
 		

Index: rpe.c
===================================================================
RCS file: /usr/cvsroot/asterisk/codecs/gsm/src/rpe.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- rpe.c	12 Feb 2003 13:59:14 -0000	1.16
+++ rpe.c	21 Apr 2005 06:30:23 -0000	1.17
@@ -362,7 +362,6 @@
 {
 	int	i;
 	word	temp, temp1, temp2, temp3;
-	longword	ltmp;
 
 	assert( mant >= 0 && mant <= 7 ); 
 

Index: short_term.c
===================================================================
RCS file: /usr/cvsroot/asterisk/codecs/gsm/src/short_term.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- short_term.c	12 Feb 2003 13:59:14 -0000	1.16
+++ short_term.c	21 Apr 2005 06:30:23 -0000	1.17
@@ -30,7 +30,6 @@
 	word	* LARpp)	/* out: decoded ..			*/
 {
 	register word	temp1 /* , temp2 */;
-	register long	ltmp;	/* for GSM_ADD */
 
 	/*  This procedure requires for efficient implementation
 	 *  two tables.
@@ -99,7 +98,6 @@
 	register word * LARp)
 {
 	register int 	i;
-	register longword ltmp;
 
 	for (i = 1; i <= 8; i++, LARp++, LARpp_j_1++, LARpp_j++) {
 		*LARp = GSM_ADD( SASR( *LARpp_j_1, 2 ), SASR( *LARpp_j, 2 ));
@@ -113,7 +111,6 @@
 	register word * LARp)
 {
 	register int i;
-	register longword ltmp;
 	for (i = 1; i <= 8; i++, LARpp_j_1++, LARpp_j++, LARp++) {
 		*LARp = GSM_ADD( SASR( *LARpp_j_1, 1), SASR( *LARpp_j, 1 ));
 	}
@@ -125,7 +122,6 @@
 	register word * LARp)
 {
 	register int i;
-	register longword ltmp;
 
 	for (i = 1; i <= 8; i++, LARpp_j_1++, LARpp_j++, LARp++) {
 		*LARp = GSM_ADD( SASR( *LARpp_j_1, 2 ), SASR( *LARpp_j, 2 ));
@@ -156,7 +152,6 @@
 {
 	register int 		i;
 	register word		temp;
-	register longword	ltmp;
 
 	for (i = 1; i <= 8; i++, LARp++) {
 




More information about the svn-commits mailing list