Silence new warning with gcc-11
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
618fa4f675
commit
17ccc2f9c2
1 changed files with 1 additions and 1 deletions
|
@ -677,7 +677,7 @@ void cb_progress(void *ctx, alpm_progress_t event, const char *pkgname,
|
||||||
int i = textlen - 3;
|
int i = textlen - 3;
|
||||||
wchar_t *p = wcstr;
|
wchar_t *p = wcstr;
|
||||||
/* grab the max number of char columns we can fill */
|
/* grab the max number of char columns we can fill */
|
||||||
while(i - wcwidth(*p) > 0) {
|
while(i > wcwidth(*p)) {
|
||||||
i -= wcwidth(*p);
|
i -= wcwidth(*p);
|
||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue