[FFmpeg-devel] [PATCH] add some av_unused attributes

Janne Grunau janne-ffmpeg
Thu Apr 29 02:57:26 CEST 2010


On Thu, Apr 29, 2010 at 01:00:20AM +0100, M?ns Rullg?rd wrote:
> Janne Grunau <janne-ffmpeg at jannau.net> writes:
> 
> > Defining av_always_inline as av_unused might be the least contorversial
> > solution.
> 
> That would certainly be better.

see attached patch, still wondering why only g++ warns

Janne
-------------- next part --------------
diff --git a/configure b/configure
index 00e1bbb..4c5ace2 100755
--- a/configure
+++ b/configure
@@ -3060,7 +3060,7 @@ test -n "$malloc_prefix" &&
 
 if enabled small || disabled optimizations; then
     echo "#undef  av_always_inline"  >> $TMPH
-    echo "#define av_always_inline"  >> $TMPH
+    echo "#define av_always_inline av_unused"  >> $TMPH
 fi
 
 print_config ARCH_   $TMPH config.mak $ARCH_LIST



More information about the ffmpeg-devel mailing list