]> git.eshelyaron.com Git - emacs.git/commitdiff
No need to complicate make-docfile.c for Clang
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 15 Jun 2017 19:34:00 +0000 (12:34 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 15 Jun 2017 19:34:30 +0000 (12:34 -0700)
* 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

index 85bcc8bc89c0504c6899557fdac1862338293ae8..9470bd635f5ccadbe6bb304f4d4963995e8b1a94 100644 (file)
@@ -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;
     }