FFmpeg
Macros
attributes.h File Reference

Macro definitions for various function/variable attributes. More...

Go to the source code of this file.

Macros

#define AV_GCC_VERSION_AT_LEAST(x, y)   0
 
#define AV_GCC_VERSION_AT_MOST(x, y)   0
 
#define av_always_inline   inline
 
#define av_extern_inline   inline
 
#define av_warn_unused_result
 
#define av_noinline
 
#define av_pure
 
#define av_const
 
#define av_cold
 
#define av_flatten
 
#define attribute_deprecated
 
#define AV_NOWARN_DEPRECATED(code)   code
 Disable warnings about deprecated features This is useful for sections of code kept for backward compatibility and scheduled for removal.
 
#define av_unused
 
#define av_used
 Mark a variable as used and prevent the compiler from optimizing it away. More...
 
#define av_alias
 
#define av_uninit(x)   x
 
#define av_builtin_constant_p(x)   0
 
#define av_printf_format(fmtpos, attrpos)
 
#define av_noreturn
 

Detailed Description

Macro definitions for various function/variable attributes.

Macro Definition Documentation

§ av_used

#define av_used

Mark a variable as used and prevent the compiler from optimizing it away.

This is useful for variables accessed only from inline assembler without the compiler being aware.