diff options
author | Allan McRae <allan@archlinux.org> | 2013-07-10 13:58:57 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-07-22 13:26:42 +1000 |
commit | ef6b6fe06572c75628943fee7067b1ef453c672a (patch) | |
tree | ac1930e4fb1394f942bf64b2b96264afdaf3d05c | |
parent | 5cc099a8ab6129b809f80c6d9578dc8f2aba35ab (diff) | |
download | pacman-ef6b6fe06572c75628943fee7067b1ef453c672a.tar.xz |
Hide unused parameter warnings when building without libcurl
Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r-- | lib/libalpm/dload.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index b759c78c..342afbc2 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -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 { |