silence warning when built without curl
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
6b541404cc
commit
33a8ced334
1 changed files with 2 additions and 0 deletions
|
@ -876,6 +876,8 @@ int SYMEXPORT alpm_option_set_disable_dl_timeout(alpm_handle_t *handle,
|
||||||
CHECK_HANDLE(handle, return -1);
|
CHECK_HANDLE(handle, return -1);
|
||||||
#ifdef HAVE_LIBCURL
|
#ifdef HAVE_LIBCURL
|
||||||
handle->disable_dl_timeout = disable_dl_timeout;
|
handle->disable_dl_timeout = disable_dl_timeout;
|
||||||
|
#else
|
||||||
|
(void)disable_dl_timeout; /* silence unused variable warnings */
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue