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
... | ... |
@@ -3246,7 +3246,11 @@ test -n "$malloc_prefix" && |
3246 | 3246 |
|
3247 | 3247 |
if enabled small || disabled optimizations; then |
3248 | 3248 |
echo "#undef av_always_inline" >> $TMPH |
3249 |
- echo "#define av_always_inline" >> $TMPH |
|
3249 |
+ if enabled small; then |
|
3250 |
+ echo "#define av_always_inline inline" >> $TMPH |
|
3251 |
+ else |
|
3252 |
+ echo "#define av_always_inline av_unused" >> $TMPH |
|
3253 |
+ fi |
|
3250 | 3254 |
fi |
3251 | 3255 |
|
3252 | 3256 |
if enabled yasm; then |