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:
parent
cc8aa484cd
commit
e408e9aa03
2 changed files with 21 additions and 12 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue