summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2017-06-13 13:55:44 +0200
committerPhilipp Stephani <phst@google.com>2017-06-13 13:56:46 +0200
commite408e9aa030a00cb1a61acdc729e8d6786b25fe3 (patch)
tree2173ff44df3fd9d906721137eada524c9e029c0d /lib-src
parentcc8aa484cdab6b2f33a8c95a5778193c762412b9 (diff)
downloademacs-e408e9aa030a00cb1a61acdc729e8d6786b25fe3.tar.gz
Silence two Clang warnings by introducing additional local variables
* lib/strftime.c (libc_hidden_def): * lib-src/make-docfile.c (put_filename): Introduce local variables to silence Clang warnings.
Diffstat (limited to 'lib-src')
-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;
}