aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorPhilipp Stephani2017-06-13 13:55:44 +0200
committerPhilipp Stephani2017-06-13 13:56:46 +0200
commite408e9aa030a00cb1a61acdc729e8d6786b25fe3 (patch)
tree2173ff44df3fd9d906721137eada524c9e029c0d /lib-src
parentcc8aa484cdab6b2f33a8c95a5778193c762412b9 (diff)
downloademacs-e408e9aa030a00cb1a61acdc729e8d6786b25fe3.tar.gz
emacs-e408e9aa030a00cb1a61acdc729e8d6786b25fe3.zip
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)
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