summaryrefslogtreecommitdiff
path: root/lib-src/make-docfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src/make-docfile.c')
-rw-r--r--lib-src/make-docfile.c6
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)
for (tmp = filename; *tmp; tmp++)
{
- if (IS_DIRECTORY_SEP (*tmp))
+ /* Use separate variable to silence a Clang warning on macOS.
+ Clang takes offence of the additional set of parantheses
+ generated by the macro. */
+ bool is_sep = IS_DIRECTORY_SEP (*tmp);
+ if (is_sep)
filename = tmp + 1;
}