summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/common.h8
-rw-r--r--libavutil/internal.h8
-rw-r--r--libavutil/md5.c2
3 files changed, 9 insertions, 9 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
diff --git a/libavutil/internal.h b/libavutil/internal.h
index ce168ddfee..d77170a257 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 f717031247..96c3d25707 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];