[SCM] libav/experimental: Move preprocessor condition before variable declaration, fixes the warning: libswscale/swscale.c:1795: warning: unused variable 'flags'

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:45:30 UTC 2013


The following commit has been merged in the experimental branch:
commit 465477e1fb9540e44aa3eab0ea6d18f62ccb648b
Author: Diego Biurrun <diego at biurrun.de>
Date:   Sun May 10 11:37:04 2009 +0000

    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) {

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list