aboutsummaryrefslogtreecommitdiff
path: root/binutils/rename.c
diff options
context:
space:
mode:
authorPekka Seppänen <pexu@sourceware.mail.kapsi.fi>2021-04-16 00:07:28 +0930
committerAlan Modra <amodra@gmail.com>2021-04-16 00:09:26 +0930
commit4c79248a46100016e902f1489ce1c38a42608460 (patch)
treedf35b5af155064894745be70a9ff25c4e5743609 /binutils/rename.c
parent5809fbf2e289fc524d3086da62918876b66cefa8 (diff)
downloadfsf-binutils-gdb-4c79248a46100016e902f1489ce1c38a42608460.zip
fsf-binutils-gdb-4c79248a46100016e902f1489ce1c38a42608460.tar.gz
fsf-binutils-gdb-4c79248a46100016e902f1489ce1c38a42608460.tar.bz2
PR27734, get_stat_atime_ns/get_stat_mtime_ns might not use parameter
PR 27725 * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED. (get_stat_mtime_ns): Likewise.
Diffstat (limited to 'binutils/rename.c')
-rw-r--r--binutils/rename.c4
1 files changed, 2 insertions, 2 deletions
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;