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.
This commit is contained in:
Pekka Seppänen 2021-04-16 00:07:28 +09:30 committed by Alan Modra
parent 5809fbf2e2
commit 4c79248a46
2 changed files with 8 additions and 2 deletions

View file

@ -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;