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.
This commit is contained in:
Stefan Schmidt 2015-04-28 16:19:29 +02:00
parent 2794ca975c
commit bd97a187ba
1 changed files with 2 additions and 0 deletions

View File

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