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:
parent
1ac8c9bb9b
commit
2b9620e6af
1 changed files with 1 additions and 5 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue