Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <cboesch@gopro.com>2017-02-02 13:26:05 +0300
committerClément Bœsch <cboesch@gopro.com>2017-02-02 13:26:05 +0300
commit55b2cfa921c3ad5a821fc0ec85093a658b102caa (patch)
treeca64d0de007b747d21920d91ca0fe61f2206e480 /libavutil/attributes.h
parenta0860b0a388d5471ae3e60fbf004509a3783f392 (diff)
parentf637046d3134a331e4b5a7243ac3dfb92735b8a5 (diff)
Merge commit 'f637046d3134a331e4b5a7243ac3dfb92735b8a5'
* commit 'f637046d3134a331e4b5a7243ac3dfb92735b8a5': libavutil: Always use some GCC style attributes on clang Merged-by: Clément Bœsch <cboesch@gopro.com>
Diffstat (limited to 'libavutil/attributes.h')
-rw-r--r--libavutil/attributes.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavutil/attributes.h b/libavutil/attributes.h
index 5c6b9deecb..54d1901116 100644
--- a/libavutil/attributes.h
+++ b/libavutil/attributes.h
@@ -121,8 +121,7 @@
#endif
#endif
-
-#if defined(__GNUC__)
+#if defined(__GNUC__) || defined(__clang__)
# define av_unused __attribute__((unused))
#else
# define av_unused
@@ -133,7 +132,7 @@
* away. This is useful for variables accessed only from inline
* assembler without the compiler being aware.
*/
-#if AV_GCC_VERSION_AT_LEAST(3,1)
+#if AV_GCC_VERSION_AT_LEAST(3,1) || defined(__clang__)
# define av_used __attribute__((used))
#else
# define av_used