Revision 0374152f libavutil/attributes.h
libavutil/attributes.h | ||
---|---|---|
96 | 96 |
#endif |
97 | 97 |
#endif |
98 | 98 |
|
99 |
/** |
|
100 |
* Mark a variable as used and prevent the compiler from optimizing it |
|
101 |
* away. This is useful for variables accessed only from inline |
|
102 |
* assembler without the compiler being aware. |
|
103 |
*/ |
|
104 |
#ifndef av_used |
|
105 |
#if AV_GCC_VERSION_AT_LEAST(3,1) |
|
106 |
# define av_used __attribute__((used)) |
|
107 |
#else |
|
108 |
# define av_used |
|
109 |
#endif |
|
110 |
#endif |
|
111 |
|
|
99 | 112 |
#ifndef av_alias |
100 | 113 |
#if (!defined(__ICC) || __ICC > 1200) && AV_GCC_VERSION_AT_LEAST(3,3) |
101 | 114 |
# define av_alias __attribute__((may_alias)) |
Also available in: Unified diff