[FFmpeg-devel] [PATCH] Remove useless preprocessor directives.
Benoit Fouet
benoit.fouet
Thu Jun 17 15:32:02 CEST 2010
yuv420_bgr32 and yuva420_bgr32 are only used if HAVE_7REGS is set.
The other solution would be to add an #else case.
This fixes the following warnings:
In file included from libswscale/x86/yuv2rgb_mmx.c:55:
libswscale/x86/yuv2rgb_template.c: In function ?yuva420_rgb32_MMX?:
libswscale/x86/yuv2rgb_template.c:410: warning: no return statement in function returning non-void
libswscale/x86/yuv2rgb_template.c: In function ?yuva420_bgr32_MMX?:
libswscale/x86/yuv2rgb_template.c:453: warning: no return statement in function returning non-void
In file included from libswscale/x86/yuv2rgb_mmx.c:62:
libswscale/x86/yuv2rgb_template.c: In function ?yuva420_rgb32_MMX2?:
libswscale/x86/yuv2rgb_template.c:410: warning: no return statement in function returning non-void
libswscale/x86/yuv2rgb_template.c: In function ?yuva420_bgr32_MMX2?:
libswscale/x86/yuv2rgb_template.c:453: warning: no return statement in function returning non-void
---
x86/yuv2rgb_template.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/x86/yuv2rgb_template.c b/x86/yuv2rgb_template.c
index 5c062c1..d91c941 100644
--- a/x86/yuv2rgb_template.c
+++ b/x86/yuv2rgb_template.c
@@ -391,7 +391,6 @@ static inline int RENAME(yuva420_rgb32)(SwsContext *c, const uint8_t *src[],
int srcSliceY, int srcSliceH,
uint8_t *dst[], int dstStride[])
{
-#if HAVE_7REGS
int y, h_size;
YUV2RGB_LOOP(4)
@@ -406,7 +405,6 @@ static inline int RENAME(yuva420_rgb32)(SwsContext *c, const uint8_t *src[],
YUV2RGB_ENDLOOP(4)
YUV2RGB_OPERANDS_ALPHA
YUV2RGB_ENDFUNC
-#endif
}
static inline int RENAME(yuv420_bgr32)(SwsContext *c, const uint8_t *src[],
@@ -434,7 +432,6 @@ static inline int RENAME(yuva420_bgr32)(SwsContext *c, const uint8_t *src[],
int srcSliceY, int srcSliceH,
uint8_t *dst[], int dstStride[])
{
-#if HAVE_7REGS
int y, h_size;
YUV2RGB_LOOP(4)
@@ -449,5 +446,4 @@ static inline int RENAME(yuva420_bgr32)(SwsContext *c, const uint8_t *src[],
YUV2RGB_ENDLOOP(4)
YUV2RGB_OPERANDS_ALPHA
YUV2RGB_ENDFUNC
-#endif
}
--
1.7.1.359.gd0b8d
More information about the ffmpeg-devel
mailing list