From: Diego Biurrun Date: Sun, 10 May 2009 11:37:04 +0000 (+0000) Subject: Move preprocessor condition before variable declaration, fixes the warning: X-Git-Tag: v0.6~4471 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=465477e1fb9540e44aa3eab0ea6d18f62ccb648b;p=platform%2Fupstream%2Flibav.git 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 --- 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) {