From ef6b6fe06572c75628943fee7067b1ef453c672a Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Wed, 10 Jul 2013 13:58:57 +1000 Subject: Hide unused parameter warnings when building without libcurl Signed-off-by: Allan McRae --- lib/libalpm/dload.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') 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 { -- cgit v1.2.3-24-g4f1b