From: Pekka Seppänen Date: Thu, 15 Apr 2021 14:37:28 +0000 (+0930) Subject: PR27734, get_stat_atime_ns/get_stat_mtime_ns might not use parameter X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c79248a46100016e902f1489ce1c38a42608460;p=binutils-gdb.git 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. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 212c35327ba..7390ba6db73 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2021-04-15 Pekka Seppänen + + PR 27725 + * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED. + (get_stat_mtime_ns): Likewise. + 2021-04-15 Alan Modra PR 27725 diff --git a/binutils/rename.c b/binutils/rename.c index 2cbe46497ab..fe6019b2631 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;