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

Silence two Clang warnings by introducing additional local variables

* lib/strftime.c (libc_hidden_def):
* lib-src/make-docfile.c (put_filename): Introduce local variables to
silence Clang warnings.
This commit is contained in:
Philipp Stephani 2017-06-13 13:55:44 +02:00
parent cc8aa484cd
commit e408e9aa03
2 changed files with 21 additions and 12 deletions

View file

@ -224,7 +224,11 @@ put_filename (char *filename)
for (tmp = filename; *tmp; tmp++)
{
if (IS_DIRECTORY_SEP (*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)
filename = tmp + 1;
}