# HG changeset patch # User Cristi Magherusan # Date 1200437216 -7200 # Node ID 6b427677621f5645b953665efcdea89b5d9c969b # Parent 15aa13c91259769b3c6c0a602f4eed81529aa076 killed a few warnings diff -r 15aa13c91259 -r 6b427677621f src/paranormal/libcalc/parser.c --- 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 == '.') { diff -r 15aa13c91259 -r 6b427677621f src/tta/ttadec.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; diff -r 15aa13c91259 -r 6b427677621f src/wma/libffwma/fft.c --- 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); } diff -r 15aa13c91259 -r 6b427677621f src/wma/libffwma/mdct.c --- 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); }