aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/common.h
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2007-05-30 09:32:25 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2007-05-30 09:32:25 +0000
commit154e30f6c2f67317fa9ab2745ed58716a9c47cc8 (patch)
tree97189f4b7b599e5a5d5e3ebd308dcfb787608250 /libavutil/common.h
parent9f6c879365f9f57b941a48c01fd2f9d8790508e3 (diff)
downloadffmpeg-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/common.h')
-rw-r--r--libavutil/common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/common.h b/libavutil/common.h
index 9ec5c7c781..14486af834 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