stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=bd97a187ba40811cdb3dfd127e853b2748f44c34

commit bd97a187ba40811cdb3dfd127e853b2748f44c34
Author: Stefan Schmidt <s.schm...@samsung.com>
Date:   Tue Apr 28 16:19:29 2015 +0200

    tests/ecore_con: Avoid warining about _parse_url being unused
    
    It is only used inside two ifdef conditions. Better check them for
    _parse_url as well.
---
 src/tests/ecore_con/ecore_con_test_ecore_con_url.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/tests/ecore_con/ecore_con_test_ecore_con_url.c 
b/src/tests/ecore_con/ecore_con_test_ecore_con_url.c
index 177c4c9..1732b3f 100644
--- a/src/tests/ecore_con/ecore_con_test_ecore_con_url.c
+++ b/src/tests/ecore_con/ecore_con_test_ecore_con_url.c
@@ -70,6 +70,7 @@ _url_compl_cb(void *data, int type EINA_UNUSED, void 
*event_info)
    return EINA_FALSE;
 }
 
+#if defined(ECORE_CON_HTTP_TEST_URL) || defined(ECORE_CON_FTP_TEST_URL)
 static Eina_Bool
 _parse_url(char *link, char *url, char **user, char **passwd, char **file, 
char **dir)
 {
@@ -156,6 +157,7 @@ error_user:
    fprintf(stderr, "Wrong URL format\n");
    return EINA_FALSE;
 }
+#endif
 
 #ifdef ECORE_CON_FTP_TEST_URL
 START_TEST(ecore_con_test_ecore_con_url_ftp_upload)

-- 


Reply via email to