From: Paul Eggert Date: Thu, 15 Jun 2017 19:34:00 +0000 (-0700) Subject: No need to complicate make-docfile.c for Clang X-Git-Tag: emacs-26.0.90~521^2~67 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2b9620e6af80a1ce57321bc32d126b602ca493ce;p=emacs.git No need to complicate make-docfile.c for Clang * 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. --- 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; }