From 465477e1fb9540e44aa3eab0ea6d18f62ccb648b Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sun, 10 May 2009 11:37:04 +0000 Subject: [PATCH] Move preprocessor condition before variable declaration, fixes the warning: libswscale/swscale.c:1795: warning: unused variable 'flags' Originally committed as revision 29287 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale --- libswscale/swscale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswscale/swscale.c b/libswscale/swscale.c index a0954ad..d8f4b0b 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -1792,9 +1792,9 @@ static void globalInit(void){ static SwsFunc getSwsFunc(SwsContext *c) { +#if CONFIG_RUNTIME_CPUDETECT && CONFIG_GPL int flags = c->flags; -#if CONFIG_RUNTIME_CPUDETECT && CONFIG_GPL #if ARCH_X86 // ordered per speed fastest first if (flags & SWS_CPU_CAPS_MMX2) { -- 2.7.4