aboutsummaryrefslogtreecommitdiffstats
path: root/codecs
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-09-27 02:45:37 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-09-27 02:45:37 +0000
commit9870b2521b30fb68be98596cdb8d4bfb62840702 (patch)
tree96fcf03c337e2c22cb66512afb6f102424b0d55e /codecs
parent9f2fba7fb1d2d024ab4fb67c3adcb24031c1e88e (diff)
Fix various compiler warnings (bug #322)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1570 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs')
-rwxr-xr-xcodecs/codec_g723_1.c10
-rwxr-xr-xcodecs/gsm/Makefile4
-rwxr-xr-xcodecs/lpc10/synths.c30
-rwxr-xr-xcodecs/mp3/Makefile2
4 files changed, 29 insertions, 17 deletions
diff --git a/codecs/codec_g723_1.c b/codecs/codec_g723_1.c
index 423d24695..3e96ad65f 100755
--- a/codecs/codec_g723_1.c
+++ b/codecs/codec_g723_1.c
@@ -94,7 +94,7 @@ struct g723_decoder_pvt {
int tail;
};
-static struct ast_translator_pvt *g723tolin_new()
+static struct ast_translator_pvt *g723tolin_new(void)
{
struct g723_decoder_pvt *tmp;
tmp = malloc(sizeof(struct g723_decoder_pvt));
@@ -108,7 +108,7 @@ static struct ast_translator_pvt *g723tolin_new()
return (struct ast_translator_pvt *)tmp;
}
-static struct ast_frame *lintog723_sample()
+static struct ast_frame *lintog723_sample(void)
{
static struct ast_frame f;
f.frametype = AST_FRAME_VOICE;
@@ -123,7 +123,7 @@ static struct ast_frame *lintog723_sample()
return &f;
}
-static struct ast_frame *g723tolin_sample()
+static struct ast_frame *g723tolin_sample(void)
{
static struct ast_frame f;
f.frametype = AST_FRAME_VOICE;
@@ -138,7 +138,7 @@ static struct ast_frame *g723tolin_sample()
return &f;
}
-static struct ast_translator_pvt *lintog723_new()
+static struct ast_translator_pvt *lintog723_new(void)
{
struct g723_encoder_pvt *tmp;
tmp = malloc(sizeof(struct g723_encoder_pvt));
@@ -396,7 +396,7 @@ int usecount(void)
return res;
}
-char *key()
+char *key(void)
{
return ASTERISK_GPL_KEY;
}
diff --git a/codecs/gsm/Makefile b/codecs/gsm/Makefile
index e41c397b5..5e2ccd180 100755
--- a/codecs/gsm/Makefile
+++ b/codecs/gsm/Makefile
@@ -54,8 +54,8 @@ PG =
# CC = /usr/lang/acc
# CCFLAGS = -c -O
-CC = gcc -pipe -Wall $(OPTIMIZE) -march=$(PROC) -fschedule-insns2 -fomit-frame-pointer
-CCFLAGS += -c -DNeedFunctionPrototypes=1 -finline-functions -funroll-loops -fPIC
+CC = gcc $(OPTIMIZE) -march=$(PROC) -fomit-frame-pointer
+CCFLAGS += -c -DNeedFunctionPrototypes=1 -funroll-loops -fPIC
LD = $(CC)
diff --git a/codecs/lpc10/synths.c b/codecs/lpc10/synths.c
index 33becea65..369e6d662 100755
--- a/codecs/lpc10/synths.c
+++ b/codecs/lpc10/synths.c
@@ -1,8 +1,11 @@
/*
$Log$
-Revision 1.14 2003/02/12 13:59:15 matteo
-mer feb 12 14:56:57 CET 2003
+Revision 1.15 2003/09/27 02:45:37 markster
+Fix various compiler warnings (bug #322)
+
+Revision 1.2 2003/09/27 02:45:37 markster
+Fix various compiler warnings (bug #322)
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
mer feb 12 14:56:57 CET 2003
@@ -61,9 +64,12 @@ static real c_b2 = .7f;
/* SYNTHS Version 54 */
/* $Log$
- * Revision 1.14 2003/02/12 13:59:15 matteo
- * mer feb 12 14:56:57 CET 2003
+ * Revision 1.15 2003/09/27 02:45:37 markster
+ * Fix various compiler warnings (bug #322)
*
+/* Revision 1.2 2003/09/27 02:45:37 markster
+/* Fix various compiler warnings (bug #322)
+/*
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
/* mer feb 12 14:56:57 CET 2003
/*
@@ -173,7 +179,7 @@ static real c_b2 = .7f;
extern /* Subroutine */ int deemp_(real *, integer *, struct lpc10_decoder_state *);
real ratio;
integer ipiti[16];
- extern /* Subroutine */ bsynz_(real *, integer *,
+ extern /* Subroutine */ void bsynz_(real *, integer *,
integer *, real *, real *, real *, real *, struct lpc10_decoder_state *), irc2pc_(real *, real *
, integer *, real *, real *);
real g2pass;
@@ -184,9 +190,12 @@ static real c_b2 = .7f;
real rci[160] /* was [10][16] */;
/* $Log$
- * Revision 1.14 2003/02/12 13:59:15 matteo
- * mer feb 12 14:56:57 CET 2003
+ * Revision 1.15 2003/09/27 02:45:37 markster
+ * Fix various compiler warnings (bug #322)
*
+/* Revision 1.2 2003/09/27 02:45:37 markster
+/* Fix various compiler warnings (bug #322)
+/*
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
/* mer feb 12 14:56:57 CET 2003
/*
@@ -218,9 +227,12 @@ static real c_b2 = .7f;
/* Frame size, Prediction order, Pitch period */
/* Arguments */
/* $Log$
- * Revision 1.14 2003/02/12 13:59:15 matteo
- * mer feb 12 14:56:57 CET 2003
+ * Revision 1.15 2003/09/27 02:45:37 markster
+ * Fix various compiler warnings (bug #322)
*
+/* Revision 1.2 2003/09/27 02:45:37 markster
+/* Fix various compiler warnings (bug #322)
+/*
/* Revision 1.1.1.1 2003/02/12 13:59:15 matteo
/* mer feb 12 14:56:57 CET 2003
/*
diff --git a/codecs/mp3/Makefile b/codecs/mp3/Makefile
index e8a771fca..f3b0c4c1a 100755
--- a/codecs/mp3/Makefile
+++ b/codecs/mp3/Makefile
@@ -1,7 +1,7 @@
#
# LMC section
-CFLAGS+= -I../include -Iinclude -O6 -funroll-loops -finline-functions -Wall -Wno-missing-prototypes -Wno-missing-declarations -g -fPIC
+CFLAGS+= -I../include -Iinclude -O3 -march=$(PROC) -funroll-loops -Wall -Wno-missing-prototypes -Wno-missing-declarations -g -fPIC
RANLIB=ranlib
# the XING decoder objs and dependencies: