Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2018-12-22 22:24:38 -0800
committerAllan McRae <allan@archlinux.org>2019-01-04 11:08:54 +1000
commit33a8ced334f01c94086a5e7e77d11a9361264781 (patch)
tree7b74bea10590ce04bf02b28a73a79b9ea2ec06d2 /lib/libalpm
parent6b541404cc691b2aea3d373e663d9628fda15a2b (diff)
silence warning when built without curl
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/handle.c2
1 files changed, 2 insertions, 0 deletions
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;
}