[Mplayerxp-cvslog] SF.net SVN: mplayerxp:[41] mplayerxp
Brought to you by:
olov
From: <nic...@us...> - 2009-12-09 16:26:14
|
Revision: 41 http://mplayerxp.svn.sourceforge.net/mplayerxp/?rev=41&view=rev Author: nickols_k Date: 2009-12-09 16:26:03 +0000 (Wed, 09 Dec 2009) Log Message: ----------- treat implicit function declarations as error Modified Paths: -------------- codecs/configure codecs/nuppelvideo.c loader/configure mplayerxp/configure mplayerxp/mplayer.c mplayerxp/postproc/postprocess.h mplayerxp/postproc/swscale.h Modified: codecs/configure =================================================================== --- codecs/configure 2009-12-09 15:56:45 UTC (rev 40) +++ codecs/configure 2009-12-09 16:26:03 UTC (rev 41) @@ -255,6 +255,7 @@ _subdirs="ffmpeg mp3lib liba52 libdca libmpeg2" + cc_version=`$_cc -dumpversion` if test "$_fastcall" = auto ; then echocheck "__fastcall optimization abilities" @@ -308,6 +309,8 @@ enabled gomp && check_cflags -fopenmp || disable gomp #enabled gomp && check_cflags -ftree-parallelize-loops=4 +add_cflags "-Werror-implicit-function-declaration" + check_func2 malloc.h malloc print_config HAVE_ config.h config.mak malloc Modified: codecs/nuppelvideo.c =================================================================== --- codecs/nuppelvideo.c 2009-12-09 15:56:45 UTC (rev 40) +++ codecs/nuppelvideo.c 2009-12-09 16:26:03 UTC (rev 41) @@ -8,6 +8,7 @@ #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <unistd.h> #include "config.h" Modified: loader/configure =================================================================== --- loader/configure 2009-12-09 15:56:45 UTC (rev 40) +++ loader/configure 2009-12-09 16:26:03 UTC (rev 41) @@ -209,10 +209,15 @@ CFLAGS="-O2" fi +require2 vsscanf "stdio.h stdarg.h" vsscanf +print_config HAVE_ config.h config.mak vsscanf + check_func2 "sys/types.h sys/mman.h" mmap mman_h=$mmap print_config HAVE_SYS_ config.h config.mak mman_h +add_cflags "-Werror-implicit-function-declaration" + ############################################################################# echo "Creating config.mak" cat >> config.mak << EOF Modified: mplayerxp/configure =================================================================== --- mplayerxp/configure 2009-12-09 15:56:45 UTC (rev 40) +++ mplayerxp/configure 2009-12-09 16:26:03 UTC (rev 41) @@ -644,6 +644,8 @@ # MAIN TESTS GO HERE # ###################### +add_cflags "-Werror-implicit-function-declaration" + disable ffmpeg # Checking for FFMPEG test -f "../codecs/ffmpeg/libavcodec/avcodec.h" && enable ffmpeg Modified: mplayerxp/mplayer.c =================================================================== --- mplayerxp/mplayer.c 2009-12-09 15:56:45 UTC (rev 40) +++ mplayerxp/mplayer.c 2009-12-09 16:26:03 UTC (rev 41) @@ -25,6 +25,7 @@ #include "mp_config.h" #include "sig_hand.h" #include "mplayer.h" +#include "postproc/swscale.h" #define HELP_MP_DEFINE_STATIC #include "help_mp.h" Modified: mplayerxp/postproc/postprocess.h =================================================================== --- mplayerxp/postproc/postprocess.h 2009-12-09 15:56:45 UTC (rev 40) +++ mplayerxp/postproc/postprocess.h 2009-12-09 16:26:03 UTC (rev 41) @@ -2,4 +2,16 @@ #define HAVE_PP_H 1 #include "libpostproc/postprocess.h" +extern int pp2_init(void); +extern void pp2_uninit(void); + +extern pp_context_t *pp2_get_context(int width, int height, int flags); +extern void pp2_free_context(pp_context_t *ppContext); +extern void pp2_free_mode(pp_mode_t *mode); +extern void pp2_postprocess(uint8_t * src[3], int srcStride[3], + uint8_t * dst[3], int dstStride[3], + int horizontalSize, int verticalSize, + QP_STORE_T *QP_store, int QP_stride, + pp_mode_t *mode, pp_context_t *ppContext, int pict_type); +extern pp_mode_t *pp2_get_mode_by_name_and_quality(char *opts,int quality); #endif Modified: mplayerxp/postproc/swscale.h =================================================================== --- mplayerxp/postproc/swscale.h 2009-12-09 15:56:45 UTC (rev 40) +++ mplayerxp/postproc/swscale.h 2009-12-09 16:26:03 UTC (rev 41) @@ -156,4 +156,9 @@ extern int sws_init(void); extern void sws_uninit(void); +extern void palette8tobgr32(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette); +extern void palette8tobgr24(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette); +extern void palette8torgb32(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette); +extern void palette8torgb24(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette); + #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |