[FFmpeg-devel] [PATCH] network: Move variable declaration under an #if

Timothy Gu timothygu99 at gmail.com
Thu May 28 01:39:55 CEST 2015


Avoids an unused variable warning.
---
 libavformat/network.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/network.c b/libavformat/network.c
index 2d05031..8cc5aad 100644
--- a/libavformat/network.c
+++ b/libavformat/network.c
@@ -29,8 +29,8 @@
 
 int ff_tls_init(void)
 {
-    int ret;
 #if CONFIG_TLS_OPENSSL_PROTOCOL
+    int ret;
     if ((ret = ff_openssl_init()) < 0)
         return ret;
 #endif
-- 
1.9.1



More information about the ffmpeg-devel mailing list