Hide unused parameter warnings when building without libcurl

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2013-07-10 13:58:57 +10:00
parent 5cc099a8ab
commit ef6b6fe065
1 changed files with 3 additions and 0 deletions

View File

@ -625,6 +625,9 @@ int _alpm_download(struct dload_payload *payload, const char *localpath,
#ifdef HAVE_LIBCURL
return curl_download_internal(payload, localpath, final_file, final_url);
#else
/* work around unused warnings when building without libcurl */
(void)final_file;
(void)final_url;
RET_ERR(handle, ALPM_ERR_EXTERNAL_DOWNLOAD, -1);
#endif
} else {