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:
parent
5809fbf2e2
commit
4c79248a46
2 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue