[FFmpeg-devel] [PATCH] Fix warning about decode_mb_skip (in libavcodec/h264.h)
Eli Friedman
eli.friedman
Fri Jul 2 00:45:16 CEST 2010
On Thu, Jul 1, 2010 at 3:39 PM, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Tue, Jun 29, 2010 at 10:06:12PM -0700, Eli Friedman wrote:
>> Patch attached; fixes warning "'decode_mb_skip' defined but not used".
>> ?As far as I can tell, doesn't have any significant effect on the
>> generated code, since the function in question gets inlined either
>> way.
>
> feel free to add av_unused
Sure; updated patch attached.
-Eli
-------------- next part --------------
Index: libavcodec/h264.h
===================================================================
--- libavcodec/h264.h (revision 23939)
+++ libavcodec/h264.h (working copy)
@@ -1255,7 +1255,7 @@
/**
* decodes a P_SKIP or B_SKIP macroblock
*/
-static void decode_mb_skip(H264Context *h){
+static void av_unused decode_mb_skip(H264Context *h){
MpegEncContext * const s = &h->s;
const int mb_xy= h->mb_xy;
int mb_type=0;
More information about the ffmpeg-devel
mailing list