aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-02-25 09:46:02 +1030
committerAlan Modra <amodra@gmail.com>2021-02-25 09:48:17 +1030
commit40b02646ec5b197e63ba904f95ea101d95a50cf4 (patch)
treeae34d9bc4526cb94291a9342a36d43e2db0d753e
parentaa659cfad638376ab535bc5a7b65c164327e9e21 (diff)
downloadfsf-binutils-gdb-40b02646ec5b197e63ba904f95ea101d95a50cf4.zip
fsf-binutils-gdb-40b02646ec5b197e63ba904f95ea101d95a50cf4.tar.gz
fsf-binutils-gdb-40b02646ec5b197e63ba904f95ea101d95a50cf4.tar.bz2
Re: Use make_tempname file descriptor in smart_rename
PR 27456 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/rename.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 8f2f844..7d47631 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2021-02-25 Alan Modra <amodra@gmail.com>
+
+ PR 27456
+ * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
+
2021-02-24 Nick Clifton <nickc@redhat.com>
PR 27285
diff --git a/binutils/rename.c b/binutils/rename.c
index f688f35..861c2b5 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;