[pacman-dev] [PATCH 2/2] Hide unused parameter warnings when building without libcurl

Allan McRae allan at archlinux.org
Wed Jul 10 00:01:05 EDT 2013


Signed-off-by: Allan McRae <allan at archlinux.org>
---
 lib/libalpm/dload.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c
index b759c78..342afbc 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 {
-- 
1.8.3.2



More information about the pacman-dev mailing list