From 4f7d2fe2e3db4283512157237c03e5ae4a2e018c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Thu, 16 Dec 2010 08:41:17 +0000 Subject: [PATCH] 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. Originally committed as revision 26032 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 8fd0bbd108..2165382418 100755 --- a/configure +++ b/configure @@ -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