diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/make-docfile.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index 9470bd635f5..85bcc8bc89c 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c | |||
| @@ -224,7 +224,11 @@ put_filename (char *filename) | |||
| 224 | 224 | ||
| 225 | for (tmp = filename; *tmp; tmp++) | 225 | for (tmp = filename; *tmp; tmp++) |
| 226 | { | 226 | { |
| 227 | if (IS_DIRECTORY_SEP (*tmp)) | 227 | /* Use separate variable to silence a Clang warning on macOS. |
| 228 | Clang takes offence of the additional set of parantheses | ||
| 229 | generated by the macro. */ | ||
| 230 | bool is_sep = IS_DIRECTORY_SEP (*tmp); | ||
| 231 | if (is_sep) | ||
| 228 | filename = tmp + 1; | 232 | filename = tmp + 1; |
| 229 | } | 233 | } |
| 230 | 234 | ||