Re: Use make_tempname file descriptor in smart_rename

PR 27456
	* rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
This commit is contained in:
Alan Modra 2021-02-25 09:46:02 +10:30
parent aa659cfad6
commit 40b02646ec
2 changed files with 7 additions and 1 deletions

View file

@ -35,7 +35,8 @@
Return 0 if ok, -1 if error. */
static int
simple_copy (int fromfd, const char *to, struct stat *target_stat)
simple_copy (int fromfd, const char *to,
struct stat *target_stat ATTRIBUTE_UNUSED)
{
int tofd, nread;
int saved;