[FFmpeg-soc] [soc] Mark functions inline to avoid unused function warnings.

Michael Niedermayer michaelni at gmx.at
Tue Jul 15 14:24:15 CEST 2008


On Tue, Jul 15, 2008 at 04:19:16AM -0400, Alexander Strange wrote:
> ---
>  libavcodec/thread.h |   26 +++++++++++++-------------
>  1 files changed, 13 insertions(+), 13 deletions(-)
> diff --git a/libavcodec/thread.h b/libavcodec/thread.h
> index 1105df8..ba0645f 100644
> --- a/libavcodec/thread.h
> +++ b/libavcodec/thread.h
> @@ -48,27 +48,27 @@ void ff_delayed_release_buffer(AVCodecContext *avctx, AVFrame *f);
>  #define USE_FRAME_THREADING(avctx) (avctx->thread_algorithm == FF_THREAD_MULTIFRAME)
>  #define USE_AVCODEC_EXECUTE(avctx) (avctx->thread_algorithm == FF_THREAD_MULTISLICE)
>  #else
> -static int ff_thread_init(AVCodecContext *avctx, int thread_count) {return 0;}
> -static void ff_thread_free(AVCodecContext *avctx) {}
> +static inline int ff_thread_init(AVCodecContext *avctx, int thread_count) {return 0;}
> +static inline void ff_thread_free(AVCodecContext *avctx) {}

Honestly, inline is not the proper solution to hide "unused" warnings

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Breaking DRM is a little like attempting to break through a door even
though the window is wide open and the only thing in the house is a bunch
of things you dont want and which you would get tomorrow for free anyway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-soc/attachments/20080715/c7d4cf3d/attachment.pgp>


More information about the FFmpeg-soc mailing list