1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

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.
This commit is contained in:
Paul Eggert 2017-06-15 12:34:00 -07:00
parent 1ac8c9bb9b
commit 2b9620e6af

View file

@ -224,11 +224,7 @@ put_filename (char *filename)
for (tmp = filename; *tmp; tmp++) for (tmp = filename; *tmp; tmp++)
{ {
/* Use separate variable to silence a Clang warning on macOS. if (IS_DIRECTORY_SEP (*tmp))
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; filename = tmp + 1;
} }