aboutsummaryrefslogtreecommitdiffstats
path: root/codecs/gsm/src
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-21 06:30:23 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-21 06:30:23 +0000
commitbef71744f4685c36a2c2db1af2d9d97a1abca305 (patch)
tree32ef323c5510fa3321c859182f59030f2c675829 /codecs/gsm/src
parent31e8dcf4fe91466bf35a3f6d4de2bd714c43b288 (diff)
fix various compiler warnings
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5491 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs/gsm/src')
-rwxr-xr-xcodecs/gsm/src/decode.c1
-rwxr-xr-xcodecs/gsm/src/long_term.c2
-rwxr-xr-xcodecs/gsm/src/lpc.c2
-rwxr-xr-xcodecs/gsm/src/preprocess.c6
-rwxr-xr-xcodecs/gsm/src/rpe.c1
-rwxr-xr-xcodecs/gsm/src/short_term.c5
6 files changed, 4 insertions, 13 deletions
diff --git a/codecs/gsm/src/decode.c b/codecs/gsm/src/decode.c
index 34e558663..7d56bf96c 100755
--- a/codecs/gsm/src/decode.c
+++ b/codecs/gsm/src/decode.c
@@ -22,7 +22,6 @@ static void Postprocessing P2((S,s),
{
register int k;
register word msr = S->msr;
- register longword ltmp; /* for GSM_ADD */
register word tmp;
for (k = 160; k--; s++) {
diff --git a/codecs/gsm/src/long_term.c b/codecs/gsm/src/long_term.c
index ee01c146b..98f64aa2a 100755
--- a/codecs/gsm/src/long_term.c
+++ b/codecs/gsm/src/long_term.c
@@ -852,7 +852,6 @@ static void Long_term_analysis_filtering P6((bc,Nc,dp,d,dpp,e),
*/
{
register int k;
- register longword ltmp;
# undef STEP
# define STEP(BP) \
@@ -921,7 +920,6 @@ void Gsm_Long_Term_Synthesis_Filtering P5((S,Ncr,bcr,erp,drp),
* table 4.3b.
*/
{
- register longword ltmp; /* for ADD */
register int k;
word brp, drpp, Nr;
diff --git a/codecs/gsm/src/lpc.c b/codecs/gsm/src/lpc.c
index 4ec52ee01..a8e9192ba 100755
--- a/codecs/gsm/src/lpc.c
+++ b/codecs/gsm/src/lpc.c
@@ -211,7 +211,6 @@ static void Reflection_coefficients P2( (L_ACF, r),
{
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 @@ static void Quantization_and_coding P1((LAR),
)
{
register word temp;
- longword ltmp;
/* This procedure needs four tables; the following equations
diff --git a/codecs/gsm/src/preprocess.c b/codecs/gsm/src/preprocess.c
index 83c3f6a56..03746f9c3 100755
--- a/codecs/gsm/src/preprocess.c
+++ b/codecs/gsm/src/preprocess.c
@@ -46,7 +46,6 @@ void Gsm_Preprocess P3((S, s, so),
word SO;
- longword ltmp; /* for ADD */
ulongword utmp; /* for L_ADD */
register int k = 160;
@@ -86,7 +85,10 @@ void Gsm_Preprocess P3((S, s, so),
/* Execution of a 31 bv 16 bits multiplication
*/
{
- word msp, lsp;
+ word msp;
+#ifndef __GNUC__
+ word lsp;
+#endif
longword L_s2;
longword L_temp;
diff --git a/codecs/gsm/src/rpe.c b/codecs/gsm/src/rpe.c
index 6644e3797..8be0c0772 100755
--- a/codecs/gsm/src/rpe.c
+++ b/codecs/gsm/src/rpe.c
@@ -362,7 +362,6 @@ static void APCM_inverse_quantization P4((xMc,mant,exp,xMp),
{
int i;
word temp, temp1, temp2, temp3;
- longword ltmp;
assert( mant >= 0 && mant <= 7 );
diff --git a/codecs/gsm/src/short_term.c b/codecs/gsm/src/short_term.c
index c1921f551..c8c0c1b2b 100755
--- a/codecs/gsm/src/short_term.c
+++ b/codecs/gsm/src/short_term.c
@@ -30,7 +30,6 @@ static void Decoding_of_the_coded_Log_Area_Ratios P2((LARc,LARpp),
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 @@ static void Coefficients_0_12 P3((LARpp_j_1, LARpp_j, LARp),
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 @@ static void Coefficients_13_26 P3((LARpp_j_1, LARpp_j, LARp),
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 @@ static void Coefficients_27_39 P3((LARpp_j_1, LARpp_j, LARp),
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 @@ static void LARp_to_rp P1((LARp),
{
register int i;
register word temp;
- register longword ltmp;
for (i = 1; i <= 8; i++, LARp++) {