changeset 29245:294522d3c22e

Move preprocessor condition before variable declaration, fixes the warning: libswscale/swscale.c:1795: warning: unused variable 'flags'
author diego
date Sun, 10 May 2009 11:37:04 +0000
parents 70803f88fba8
children 8861e08033eb
files libswscale/swscale.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale.c	Sat May 09 21:37:07 2009 +0000
+++ b/libswscale/swscale.c	Sun May 10 11:37:04 2009 +0000
@@ -1792,9 +1792,9 @@
 
 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) {