diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2020-04-06 10:36:51 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-04-06 10:37:22 -0700 |
commit | 8b04047653865c8d09cea8c852f7b29f33adb907 (patch) | |
tree | de39dce0b81ccb586c5db8ea4e83396d2412ceaa | |
parent | 3dc2f50e5bf9f58aee23fd6c61c02fadc240a377 (diff) | |
download | emacs-8b04047653865c8d09cea8c852f7b29f33adb907.tar.gz |
Pacify gcc in xpm_scan
* src/image.c (xpm_scan): Redo a loop for clarity.
This also pacifies --enable-gcc-warnings (GCC 9.3.1 x86-64 with -Og).
-rw-r--r-- | src/image.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/image.c b/src/image.c index 65d59254f02..c98ca291ca5 100644 --- a/src/image.c +++ b/src/image.c @@ -4572,8 +4572,9 @@ xpm_scan (const char **s, const char *end, const char **beg, ptrdiff_t *len) while (*s < end) { /* Skip white-space. */ - while (*s < end && (c = *(*s)++, c_isspace (c))) - ; + do + c = *(*s)++; + while (c_isspace (c) && *s < end); /* gnus-pointer.xpm uses '-' in its identifier. sb-dir-plus.xpm uses '+' in its identifier. */ |