summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2015-04-28 16:19:29 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2015-04-28 16:28:46 +0200
commitbd97a187ba40811cdb3dfd127e853b2748f44c34 (patch)
tree5301598e2a95bf4f82ea3e4740a42d044bfbb1a3
parent2794ca975c66d32b48dc4a6fff76eafbcedd5c04 (diff)
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.
-rw-r--r--src/tests/ecore_con/ecore_con_test_ecore_con_url.c2
1 files changed, 2 insertions, 0 deletions
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 177c4c9b89..1732b3fe18 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)
70 return EINA_FALSE; 70 return EINA_FALSE;
71} 71}
72 72
73#if defined(ECORE_CON_HTTP_TEST_URL) || defined(ECORE_CON_FTP_TEST_URL)
73static Eina_Bool 74static Eina_Bool
74_parse_url(char *link, char *url, char **user, char **passwd, char **file, char **dir) 75_parse_url(char *link, char *url, char **user, char **passwd, char **file, char **dir)
75{ 76{
@@ -156,6 +157,7 @@ error_user:
156 fprintf(stderr, "Wrong URL format\n"); 157 fprintf(stderr, "Wrong URL format\n");
157 return EINA_FALSE; 158 return EINA_FALSE;
158} 159}
160#endif
159 161
160#ifdef ECORE_CON_FTP_TEST_URL 162#ifdef ECORE_CON_FTP_TEST_URL
161START_TEST(ecore_con_test_ecore_con_url_ftp_upload) 163START_TEST(ecore_con_test_ecore_con_url_ftp_upload)