[FFmpeg-cvslog] r26032 - trunk/configure

mstorsjo subversion
Thu Dec 16 09:41:17 CET 2010


Author: mstorsjo
Date: Thu Dec 16 09:41:17 2010
New Revision: 26032

Log:
configure: Avoid warnings if av_always_inline is disabled

This macro is disabled if --enable-small or --disable-optimizations are set.
Currently, this leads to warnings about functions being defined but not used,
for functions in header files.

By defining av_always_inline as inline or as av_unused, we avoid these
warnings.

This doesn't make a normal build with --enable-small any larger,
since the compiler probably chooses not to inline these functions even
if they're marked as inline.

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Thu Dec 16 04:44:35 2010	(r26031)
+++ trunk/configure	Thu Dec 16 09:41:17 2010	(r26032)
@@ -3246,7 +3246,11 @@ test -n "$malloc_prefix" &&
 
 if enabled small || disabled optimizations; then
     echo "#undef  av_always_inline"  >> $TMPH
-    echo "#define av_always_inline"  >> $TMPH
+    if enabled small; then
+        echo "#define av_always_inline inline"  >> $TMPH
+    else
+        echo "#define av_always_inline av_unused"  >> $TMPH
+    fi
 fi
 
 if enabled yasm; then



More information about the ffmpeg-cvslog mailing list