From 2b9620e6af80a1ce57321bc32d126b602ca493ce Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 15 Jun 2017 12:34:00 -0700 Subject: [PATCH] No need to complicate make-docfile.c for Clang MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * lib-src/make-docfile.c (put_filename): Undo recent change. The Clang false alarm occurs only with CFLAGS=-save-temps and we needn’t worry about pacifying unusual compiler configurations. --- lib-src/make-docfile.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index 85bcc8bc89c..9470bd635f5 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c @@ -224,11 +224,7 @@ put_filename (char *filename) for (tmp = filename; *tmp; 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) + if (IS_DIRECTORY_SEP (*tmp)) filename = tmp + 1; } -- 2.39.2