From 4ca5f5949b42f76867f11eec0a5379ed3eb531d2 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Thu, 20 Jun 2019 16:28:44 +1000 Subject: Fix compiler warnings with gcc-9.1 Signed-off-by: Allan McRae --- src/pacman/callback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pacman/callback.c') diff --git a/src/pacman/callback.c b/src/pacman/callback.c index 22865614..aa5f521e 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -804,7 +804,7 @@ void cb_dl_progress(const char *filename, off_t file_xfered, off_t file_total) int i = filenamelen - 3; wchar_t *wcp = wcfname; /* grab the max number of char columns we can fill */ - while(i > 0 && wcwidth(*wcp) < i) { + while(wcwidth(*wcp) < i) { i -= wcwidth(*wcp); wcp++; } -- cgit v1.2.3-54-g00ecf