From 6803260f2608b0a0028f5382c5a498d61bce45c3 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 9 Aug 2011 15:21:02 -0500 Subject: Fix compile error when curl is not used Noticed in my PowerPC Linux VM: cc1: warnings being treated as errors dload.c:45: error: 'get_filename' defined but not used make[3]: *** [dload.lo] Error 1 Signed-off-by: Dan McGee --- lib/libalpm/dload.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index dc4f91e5..ac47e94a 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -42,6 +42,9 @@ #include "util.h" #include "handle.h" +#ifdef HAVE_LIBCURL +static double prevprogress; /* last download amount */ + static const char *get_filename(const char *url) { char *filename = strrchr(url, '/'); @@ -51,9 +54,6 @@ static const char *get_filename(const char *url) return filename; } -#ifdef HAVE_LIBCURL -static double prevprogress; /* last download amount */ - static char *get_fullpath(const char *path, const char *filename, const char *suffix) { -- cgit v1.2.3-70-g09d2