diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2007-05-30 09:32:25 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2007-05-30 09:32:25 +0000 |
commit | 154e30f6c2f67317fa9ab2745ed58716a9c47cc8 (patch) | |
tree | 97189f4b7b599e5a5d5e3ebd308dcfb787608250 /libavutil | |
parent | 9f6c879365f9f57b941a48c01fd2f9d8790508e3 (diff) | |
download | ffmpeg-streaming-154e30f6c2f67317fa9ab2745ed58716a9c47cc8.zip ffmpeg-streaming-154e30f6c2f67317fa9ab2745ed58716a9c47cc8.tar.gz |
rename attribute_unused to av_unused and moves its declaration to common.h
patch by Carl Eugen Hoyos cehoyos chez ag or at
original thread: [FFmpeg-devel] [PATCH] attribute_unused -> av_unused
date: 05/29/2007 01:23 PM
Originally committed as revision 9155 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/common.h | 8 | ||||
-rw-r--r-- | libavutil/internal.h | 8 | ||||
-rw-r--r-- | libavutil/md5.c | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/libavutil/common.h b/libavutil/common.h index 9ec5c7c..14486af 100644 --- a/libavutil/common.h +++ b/libavutil/common.h @@ -63,6 +63,14 @@ #endif #endif +#ifndef av_unused +#if defined(__GNUC__) +# define av_unused __attribute__((unused)) +#else +# define av_unused +#endif +#endif + #include "mem.h" //rounded divison & shift diff --git a/libavutil/internal.h b/libavutil/internal.h index ce168dd..d77170a 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -34,14 +34,6 @@ #endif #endif -#ifndef attribute_unused -#if defined(__GNUC__) -# define attribute_unused __attribute__((unused)) -#else -# define attribute_unused -#endif -#endif - #ifndef M_PI #define M_PI 3.14159265358979323846 #endif diff --git a/libavutil/md5.c b/libavutil/md5.c index f717031..96c3d25 100644 --- a/libavutil/md5.c +++ b/libavutil/md5.c @@ -87,7 +87,7 @@ static const uint32_t T[64] = { // T[i]= fabs(sin(i+1)<<32) static void body(uint32_t ABCD[4], uint32_t X[16]){ int t; - int i attribute_unused; + int i av_unused; unsigned int a= ABCD[3]; unsigned int b= ABCD[2]; unsigned int c= ABCD[1]; |