From 40b02646ec5b197e63ba904f95ea101d95a50cf4 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 25 Feb 2021 09:46:02 +1030 Subject: [PATCH] Re: Use make_tempname file descriptor in smart_rename PR 27456 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED. --- binutils/ChangeLog | 5 +++++ binutils/rename.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 8f2f844a5db..7d47631f28f 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2021-02-25 Alan Modra + + PR 27456 + * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED. + 2021-02-24 Nick Clifton PR 27285 diff --git a/binutils/rename.c b/binutils/rename.c index f688f350d51..861c2b56d18 100644 --- a/binutils/rename.c +++ b/binutils/rename.c @@ -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; -- 2.30.2