changeset 29313:7a6f47f74e9b

Kill warnings of possibly unused variables by using av_unused.
author ramiro
date Thu, 11 Jun 2009 17:10:54 +0000
parents 4851d0d2136b
children e312750d3278
files libswscale/swscale_template.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale_template.c	Thu Jun 11 15:15:43 2009 +0000
+++ b/libswscale/swscale_template.c	Thu Jun 11 17:10:54 2009 +0000
@@ -2221,10 +2221,10 @@
                                    int srcFormat, uint8_t *formatConvBuffer,
                                    uint32_t *pal, int isAlpha)
 {
-    int32_t *mmx2FilterPos = c->lumMmx2FilterPos;
-    int16_t *mmx2Filter = c->lumMmx2Filter;
-    int canMMX2BeUsed = c->canMMX2BeUsed;
-    void *funnyYCode = c->funnyYCode;
+    int32_t av_unused *mmx2FilterPos = c->lumMmx2FilterPos;
+    int16_t av_unused *mmx2Filter    = c->lumMmx2Filter;
+    int     av_unused canMMX2BeUsed  = c->canMMX2BeUsed;
+    void    av_unused *funnyYCode    = c->funnyYCode;
     void (*internal_func)(uint8_t *, const uint8_t *, long, uint32_t *) = isAlpha ? c->hascale_internal : c->hyscale_internal;
 
     if (isAlpha) {
@@ -2414,10 +2414,10 @@
                                    int srcFormat, uint8_t *formatConvBuffer,
                                    uint32_t *pal)
 {
-    int32_t *mmx2FilterPos = c->chrMmx2FilterPos;
-    int16_t *mmx2Filter = c->chrMmx2Filter;
-    int canMMX2BeUsed = c->canMMX2BeUsed;
-    void *funnyUVCode = c->funnyUVCode;
+    int32_t av_unused *mmx2FilterPos = c->chrMmx2FilterPos;
+    int16_t av_unused *mmx2Filter    = c->chrMmx2Filter;
+    int     av_unused canMMX2BeUsed  = c->canMMX2BeUsed;
+    void    av_unused *funnyUVCode   = c->funnyUVCode;
 
     if (isGray(srcFormat) || srcFormat==PIX_FMT_MONOBLACK || srcFormat==PIX_FMT_MONOWHITE)
         return;