diff common.h @ 2522:e25782262d7d libavcodec

kill warnings patch by (Mns Rullgrd <mru inprovide com>)
author michael
date Thu, 24 Feb 2005 19:08:50 +0000
parents 35ca0ef0c279
children 9a7770ebed14
line wrap: on
line diff
--- a/common.h	Thu Feb 24 16:39:03 2005 +0000
+++ b/common.h	Thu Feb 24 19:08:50 2005 +0000
@@ -85,6 +85,14 @@
 #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