diff options
author | Luca Abeni <lucabe72@email.it> | 2006-12-26 17:59:28 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2006-12-26 17:59:28 +0000 |
commit | 789237cad0fe4344d8c0e32b9508b0601df23dd2 (patch) | |
tree | 384f1f71cf6f33bd35d04f68e376d9546a2ad170 /libswscale | |
parent | 628bc5e8623e35d3a69d235eae8519fccdaea50b (diff) | |
download | ffmpeg-streaming-789237cad0fe4344d8c0e32b9508b0601df23dd2.zip ffmpeg-streaming-789237cad0fe4344d8c0e32b9508b0601df23dd2.tar.gz |
Mark some variables as possibly unused to avoid warnings
Originally committed as revision 21775 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/swscale.c | 2 | ||||
-rw-r--r-- | libswscale/yuv2rgb.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 00d2168..6bd8023 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -386,7 +386,7 @@ static inline void yuv2nv12XinC(int16_t *lumFilter, int16_t **lumSrc, int lumFil int Y2=1<<18;\ int U=1<<18;\ int V=1<<18;\ - type *r, *b, *g;\ + type attribute_unused *r, *b, *g;\ const int i2= 2*i;\ \ for(j=0; j<lumFilterSize; j++)\ diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c index 645328c..e9dc5b4 100644 --- a/libswscale/yuv2rgb.c +++ b/libswscale/yuv2rgb.c @@ -265,14 +265,16 @@ static int func_name(SwsContext *c, uint8_t* src[], int srcStride[], int srcSlic for(y=0; y<srcSliceH; y+=2){\ 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 *r, *g, *b;\ + dst_type attribute_unused *r, *b;\ + dst_type *g;\ uint8_t *py_1= src[0] + y*srcStride[0];\ uint8_t *py_2= py_1 + srcStride[0];\ uint8_t *pu= src[1] + (y>>1)*srcStride[1];\ uint8_t *pv= src[2] + (y>>1)*srcStride[2];\ unsigned int h_size= c->dstW>>3;\ while (h_size--) {\ - int U, V, Y;\ + int attribute_unused U, V;\ + int Y;\ #define EPILOG(dst_delta)\ pu += 4;\ |