From b2488eb356281e5da56d12286f07798f8ca8d2cb Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sun, 23 Feb 2014 11:41:40 +1000 Subject: Fix warnings with strict-overflow in gcc-4.9 Signed-off-by: Allan McRae --- lib/libalpm/sync.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index 96db50a3..718f9af2 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -685,7 +685,8 @@ static int endswith(const char *filename, const char *extension) static int apply_deltas(alpm_handle_t *handle) { alpm_list_t *i; - int deltas_found = 0, ret = 0; + size_t deltas_found = 0; + int ret = 0; const char *cachedir = _alpm_filecache_setup(handle); alpm_trans_t *trans = handle->trans; alpm_event_delta_patch_t event; -- cgit v1.2.3-70-g09d2