ydiff: fix -Wdiscarded-qualifiers warning

```
../../../src/diffviewer/ydiff.c:613:17: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  613 |         next_ch = g_utf8_next_char (str);
```

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
Yury V. Zaytsev 2024-09-24 11:27:39 +02:00
parent faea164957
commit ffd6fd11f7

View File

@ -607,7 +607,7 @@ dview_get_utf (const char *str, int *ch, int *ch_length)
}
else
{
char *next_ch;
const char *next_ch;
/* Calculate UTF-8 char length */
next_ch = g_utf8_next_char (str);