summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2013-07-10 05:58:57 +0200
committerAllan McRae <allan@archlinux.org>2013-07-22 05:26:42 +0200
commitef6b6fe06572c75628943fee7067b1ef453c672a (patch)
treeac1930e4fb1394f942bf64b2b96264afdaf3d05c
parent5cc099a8ab6129b809f80c6d9578dc8f2aba35ab (diff)
downloadpacman-ef6b6fe06572c75628943fee7067b1ef453c672a.tar.gz
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.c3
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 {