# HG changeset patch # User michael # Date 1066597541 0 # Node ID b340e83b8d0dff61eaa7bb8f9ce3f6f41f01a79f # Parent 2335dcb71152059fc4e68b69d716ad4d23af1dd6 gcc->C99 and warning fixes patch by (Dan Christiansen ) diff -r 2335dcb71152 -r b340e83b8d0d avcodec.h --- a/avcodec.h Sat Oct 18 18:47:06 2003 +0000 +++ b/avcodec.h Sun Oct 19 21:05:41 2003 +0000 @@ -208,8 +208,8 @@ /* ME algos sorted by quality */ //FIXME remove IMHO -static const int Motion_Est_QTab[] = { ME_ZERO, ME_PHODS, ME_LOG, - ME_X1, ME_EPZS, ME_FULL }; +static const __attribute__((unused)) int Motion_Est_QTab[] = + { ME_ZERO, ME_PHODS, ME_LOG, ME_X1, ME_EPZS, ME_FULL }; #define FF_MAX_B_FRAMES 8 diff -r 2335dcb71152 -r b340e83b8d0d common.h --- a/common.h Sat Oct 18 18:47:06 2003 +0000 +++ b/common.h Sun Oct 19 21:05:41 2003 +0000 @@ -185,9 +185,9 @@ # else # ifdef DEBUG -# define dprintf(fmt,args...) printf(fmt, ## args) +# define dprintf(fmt,...) printf(fmt, __VA_ARGS__) # else -# define dprintf(fmt,args...) +# define dprintf(fmt,...) # endif # endif /* !CONFIG_WIN32 */ diff -r 2335dcb71152 -r b340e83b8d0d dvdata.h --- a/dvdata.h Sat Oct 18 18:47:06 2003 +0000 +++ b/dvdata.h Sun Oct 19 21:05:41 2003 +0000 @@ -1293,7 +1293,7 @@ { 31, 67, 103, 21, 57, 93, 11, 47, 83}, }; -static const int dv_audio_frequency[3] = { +static const __attribute__((unused)) int dv_audio_frequency[3] = { 48000, 44100, 32000, }; diff -r 2335dcb71152 -r b340e83b8d0d ffv1.c --- a/ffv1.c Sat Oct 18 18:47:06 2003 +0000 +++ b/ffv1.c Sun Oct 19 21:05:41 2003 +0000 @@ -21,7 +21,7 @@ /** * @file ffv1.c - * FF Video Codec 1 (a experimental lossless codec) + * FF Video Codec 1 (an experimental lossless codec) */ #include "common.h" diff -r 2335dcb71152 -r b340e83b8d0d interplayvideo.c --- a/interplayvideo.c Sat Oct 18 18:47:06 2003 +0000 +++ b/interplayvideo.c Sun Oct 19 21:05:41 2003 +0000 @@ -876,7 +876,7 @@ if (s->avctx->extradata_size != sizeof(AVPaletteControl)) { printf (" Interplay video: expected extradata_size of %d\n", - sizeof(AVPaletteControl)); + (int)sizeof(AVPaletteControl)); return -1; }