summaryrefslogtreecommitdiff
path: root/libavcodec/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/common.h')
-rw-r--r--libavcodec/common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/common.h b/libavcodec/common.h
index ec81297ba2..8268ee79b9 100644
--- a/libavcodec/common.h
+++ b/libavcodec/common.h
@@ -85,6 +85,14 @@ extern const struct AVOption avoptions_workaround_bug[11];
#endif
#endif
+#ifndef attribute_unused
+#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
+# define attribute_unused __attribute__((unused))
+#else
+# define attribute_unused
+#endif
+#endif
+
#ifndef EMULATE_INTTYPES
# include <inttypes.h>
#else