Commit 346421d9 authored by lucabe's avatar lucabe

Mark some variables as possibly unused to avoid warnings


git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@21775 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 2f9c658b
...@@ -386,7 +386,7 @@ static inline void yuv2nv12XinC(int16_t *lumFilter, int16_t **lumSrc, int lumFil ...@@ -386,7 +386,7 @@ static inline void yuv2nv12XinC(int16_t *lumFilter, int16_t **lumSrc, int lumFil
int Y2=1<<18;\ int Y2=1<<18;\
int U=1<<18;\ int U=1<<18;\
int V=1<<18;\ int V=1<<18;\
type *r, *b, *g;\ type attribute_unused *r, *b, *g;\
const int i2= 2*i;\ const int i2= 2*i;\
\ \
for(j=0; j<lumFilterSize; j++)\ for(j=0; j<lumFilterSize; j++)\
......
...@@ -265,14 +265,16 @@ static int func_name(SwsContext *c, uint8_t* src[], int srcStride[], int srcSlic ...@@ -265,14 +265,16 @@ static int func_name(SwsContext *c, uint8_t* src[], int srcStride[], int srcSlic
for(y=0; y<srcSliceH; y+=2){\ for(y=0; y<srcSliceH; y+=2){\
dst_type *dst_1= (dst_type*)(dst[0] + (y+srcSliceY )*dstStride[0]);\ dst_type *dst_1= (dst_type*)(dst[0] + (y+srcSliceY )*dstStride[0]);\
dst_type *dst_2= (dst_type*)(dst[0] + (y+srcSliceY+1)*dstStride[0]);\ dst_type *dst_2= (dst_type*)(dst[0] + (y+srcSliceY+1)*dstStride[0]);\
dst_type *r, *g, *b;\ dst_type attribute_unused *r, *b;\
dst_type *g;\
uint8_t *py_1= src[0] + y*srcStride[0];\ uint8_t *py_1= src[0] + y*srcStride[0];\
uint8_t *py_2= py_1 + srcStride[0];\ uint8_t *py_2= py_1 + srcStride[0];\
uint8_t *pu= src[1] + (y>>1)*srcStride[1];\ uint8_t *pu= src[1] + (y>>1)*srcStride[1];\
uint8_t *pv= src[2] + (y>>1)*srcStride[2];\ uint8_t *pv= src[2] + (y>>1)*srcStride[2];\
unsigned int h_size= c->dstW>>3;\ unsigned int h_size= c->dstW>>3;\
while (h_size--) {\ while (h_size--) {\
int U, V, Y;\ int attribute_unused U, V;\
int Y;\
#define EPILOG(dst_delta)\ #define EPILOG(dst_delta)\
pu += 4;\ pu += 4;\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment