aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog6
-rw-r--r--binutils/rename.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 212c353..7390ba6 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,9 @@
+2021-04-15 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
+
+ PR 27725
+ * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED.
+ (get_stat_mtime_ns): Likewise.
+
2021-04-15 Alan Modra <amodra@gmail.com>
PR 27725
diff --git a/binutils/rename.c b/binutils/rename.c
index 2cbe464..fe6019b 100644
--- a/binutils/rename.c
+++ b/binutils/rename.c
@@ -104,7 +104,7 @@ simple_copy (int fromfd, const char *to,
/* Return the nanosecond component of *ST's access time. */
inline long int
-get_stat_atime_ns (struct stat const *st)
+get_stat_atime_ns (struct stat const *st ATTRIBUTE_UNUSED)
{
# if defined STAT_TIMESPEC
return STAT_TIMESPEC (st, st_atim).tv_nsec;
@@ -117,7 +117,7 @@ get_stat_atime_ns (struct stat const *st)
/* Return the nanosecond component of *ST's data modification time. */
inline long int
-get_stat_mtime_ns (struct stat const *st)
+get_stat_mtime_ns (struct stat const *st ATTRIBUTE_UNUSED)
{
# if defined STAT_TIMESPEC
return STAT_TIMESPEC (st, st_mtim).tv_nsec;