diff options
author | Måns Rullgård <mans@mansr.com> | 2005-02-24 19:08:50 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-02-24 19:08:50 +0000 |
commit | 88730be65153f4a59916d971842fdaed3e0fd72b (patch) | |
tree | 1f49c5812d2382abb53df216aab8cabc3c3f56b9 /libavcodec/common.h | |
parent | 53513831da58cae7603dc01270c1cf8e4252eba0 (diff) | |
download | ffmpeg-88730be65153f4a59916d971842fdaed3e0fd72b.tar.gz |
kill warnings patch by (Måns Rullgård <mru inprovide com>)
Originally committed as revision 3977 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/common.h')
-rw-r--r-- | libavcodec/common.h | 8 |
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 |