__attribute__((unused)) works with gcc 2.95 too
authorLuca Abeni <lucabe72@email.it>
Sun, 7 Jan 2007 11:11:49 +0000 (11:11 +0000)
committerLuca Abeni <lucabe72@email.it>
Sun, 7 Jan 2007 11:11:49 +0000 (11:11 +0000)
Originally committed as revision 7421 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavutil/internal.h

index d498f99..37a51b6 100644 (file)
@@ -35,7 +35,7 @@
 #endif
 
 #ifndef attribute_unused
-#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
+#if defined(__GNUC__)
 #    define attribute_unused __attribute__((unused))
 #else
 #    define attribute_unused