mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 07:48:50 -05:00
Hide unused parameter warnings when building without libcurl
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
5cc099a8ab
commit
ef6b6fe065
@ -625,6 +625,9 @@ int _alpm_download(struct dload_payload *payload, const char *localpath,
|
|||||||
#ifdef HAVE_LIBCURL
|
#ifdef HAVE_LIBCURL
|
||||||
return curl_download_internal(payload, localpath, final_file, final_url);
|
return curl_download_internal(payload, localpath, final_file, final_url);
|
||||||
#else
|
#else
|
||||||
|
/* work around unused warnings when building without libcurl */
|
||||||
|
(void)final_file;
|
||||||
|
(void)final_url;
|
||||||
RET_ERR(handle, ALPM_ERR_EXTERNAL_DOWNLOAD, -1);
|
RET_ERR(handle, ALPM_ERR_EXTERNAL_DOWNLOAD, -1);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user