[pacman-dev] [PATCH 1/4] silence warning when built without curl

Andrew Gregory andrew.gregory.8 at gmail.com
Sun Dec 23 06:24:38 UTC 2018


Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
---
 lib/libalpm/handle.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c
index f912d2f5..c491d87c 100644
--- a/lib/libalpm/handle.c
+++ b/lib/libalpm/handle.c
@@ -876,6 +876,8 @@ int SYMEXPORT alpm_option_set_disable_dl_timeout(alpm_handle_t *handle,
 	CHECK_HANDLE(handle, return -1);
 #ifdef HAVE_LIBCURL
 	handle->disable_dl_timeout = disable_dl_timeout;
+#else
+	(void)disable_dl_timeout; /* silence unused variable warnings */
 #endif
 	return 0;
 }
-- 
2.19.2


More information about the pacman-dev mailing list