Get rid of some warnings with GCC 10, from Thomas Klausner.

This commit is contained in:
nicm
2023-06-30 13:19:32 +00:00
parent 2546216019
commit 4e57894e85
7 changed files with 12 additions and 9 deletions

View File

@ -3813,7 +3813,7 @@ format_build_modifiers(struct format_expand_state *es, const char **s,
argc = 0;
/* Single argument with no wrapper character. */
if (!ispunct(cp[1]) || cp[1] == '-') {
if (!ispunct((u_char)cp[1]) || cp[1] == '-') {
end = format_skip(cp + 1, ":;");
if (end == NULL)
break;