Mercurial > audlegacy-plugins
changeset 2321:6b427677621f
killed a few warnings
author | Cristi Magherusan <majeru@atheme.org> |
---|---|
date | Wed, 16 Jan 2008 00:46:56 +0200 |
parents | 15aa13c91259 |
children | 4bb86ffd9ddf |
files | src/paranormal/libcalc/parser.c src/tta/ttadec.c src/wma/libffwma/fft.c src/wma/libffwma/mdct.c |
diffstat | 4 files changed, 15 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/src/paranormal/libcalc/parser.c Tue Jan 15 20:49:33 2008 +0100 +++ b/src/paranormal/libcalc/parser.c Wed Jan 16 00:46:56 2008 +0200 @@ -489,8 +489,10 @@ /* YYLEX -- calling `yylex' with the right arguments. */ #ifdef YYLEX_PARAM +int yylex (YYSTYPE *yylval, void *yyparam); # define YYLEX yylex (&yylval, YYLEX_PARAM) #else +int yylex (YYSTYPE *yylval); # define YYLEX yylex (&yylval) #endif @@ -751,6 +753,7 @@ #endif #endif /* ! YYPARSE_PARAM */ +int yyerror (char *s); @@ -1392,7 +1395,7 @@ old_locale = setlocale (LC_ALL, NULL); saved_locale = g_strdup (old_locale); setlocale (LC_ALL, "C"); - sscanf (((VFSBuffer *)(pc->input->handle))->iter, "%lf", &yylval->d_value); + sscanf ((const char*)((VFSBuffer *)(pc->input->handle))->iter, "%lf", &yylval->d_value); while (isdigit(c) || c == '.') {
--- a/src/tta/ttadec.c Tue Jan 15 20:49:33 2008 +0100 +++ b/src/tta/ttadec.c Wed Jan 16 00:46:56 2008 +0200 @@ -472,7 +472,7 @@ } int get_samples (byte *buffer) { - unsigned int k, depth, unary, binary; + unsigned int k, depth, unary, binary=0; byte *p = buffer; decoder *dec = tta; int *prev = cache;
--- a/src/wma/libffwma/fft.c Tue Jan 15 20:49:33 2008 +0100 +++ b/src/wma/libffwma/fft.c Wed Jan 16 00:46:56 2008 +0200 @@ -301,9 +301,9 @@ } return 0; fail: - av_freep(&s->revtab); - av_freep(&s->exptab); - av_freep(&s->exptab1); + av_freep((void*)&s->revtab); + av_freep((void*)&s->exptab); + av_freep((void*)&s->exptab1); return -1; } @@ -431,8 +431,8 @@ void fft_end(FFTContext *s) { - av_freep(&s->revtab); - av_freep(&s->exptab); - av_freep(&s->exptab1); + av_freep((void*)&s->revtab); + av_freep((void*)&s->exptab); + av_freep((void*)&s->exptab1); }
--- a/src/wma/libffwma/mdct.c Tue Jan 15 20:49:33 2008 +0100 +++ b/src/wma/libffwma/mdct.c Wed Jan 16 00:46:56 2008 +0200 @@ -52,8 +52,8 @@ goto fail; return 0; fail: - av_freep(&s->tcos); - av_freep(&s->tsin); + av_freep((void*)&s->tcos); + av_freep((void*)&s->tsin); return -1; } @@ -169,7 +169,7 @@ void ff_mdct_end(MDCTContext *s) { - av_freep(&s->tcos); - av_freep(&s->tsin); + av_freep((void*)&s->tcos); + av_freep((void*)&s->tsin); fft_end(&s->fft); }