changeset 339:8829032777d5 libavutil

rename attribute_unused to av_unused and moves its declaration to common.h patch by Carl Eugen Hoyos cehoyos chez ag or at original thread: [FFmpeg-devel] [PATCH] attribute_unused -> av_unused date: 05/29/2007 01:23 PM
author benoit
date Wed, 30 May 2007 09:32:25 +0000
parents 76077bb41478
children ae8a3be2db3b
files common.h internal.h md5.c
diffstat 3 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/common.h	Wed May 16 12:25:54 2007 +0000
+++ b/common.h	Wed May 30 09:32:25 2007 +0000
@@ -63,6 +63,14 @@
 #endif
 #endif
 
+#ifndef av_unused
+#if defined(__GNUC__)
+#    define av_unused __attribute__((unused))
+#else
+#    define av_unused
+#endif
+#endif
+
 #include "mem.h"
 
 //rounded divison & shift
--- a/internal.h	Wed May 16 12:25:54 2007 +0000
+++ b/internal.h	Wed May 30 09:32:25 2007 +0000
@@ -34,14 +34,6 @@
 #endif
 #endif
 
-#ifndef attribute_unused
-#if defined(__GNUC__)
-#    define attribute_unused __attribute__((unused))
-#else
-#    define attribute_unused
-#endif
-#endif
-
 #ifndef M_PI
 #define M_PI    3.14159265358979323846
 #endif
--- a/md5.c	Wed May 16 12:25:54 2007 +0000
+++ b/md5.c	Wed May 30 09:32:25 2007 +0000
@@ -87,7 +87,7 @@
 static void body(uint32_t ABCD[4], uint32_t X[16]){
 
     int t;
-    int i attribute_unused;
+    int i av_unused;
     unsigned int a= ABCD[3];
     unsigned int b= ABCD[2];
     unsigned int c= ABCD[1];