diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2018-12-23 07:24:38 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2019-01-04 02:08:54 +0100 |
commit | 33a8ced334f01c94086a5e7e77d11a9361264781 (patch) | |
tree | 7b74bea10590ce04bf02b28a73a79b9ea2ec06d2 | |
parent | 6b541404cc691b2aea3d373e663d9628fda15a2b (diff) | |
download | pacman-33a8ced334f01c94086a5e7e77d11a9361264781.tar.gz pacman-33a8ced334f01c94086a5e7e77d11a9361264781.tar.xz |
silence warning when built without curl
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r-- | lib/libalpm/handle.c | 2 |
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; } |