mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:50:24 +08:00
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:

committed by
Alan Modra

parent
5809fbf2e2
commit
4c79248a46
@ -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>
|
2021-04-15 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
PR 27725
|
PR 27725
|
||||||
|
@ -104,7 +104,7 @@ simple_copy (int fromfd, const char *to,
|
|||||||
|
|
||||||
/* Return the nanosecond component of *ST's access time. */
|
/* Return the nanosecond component of *ST's access time. */
|
||||||
inline long int
|
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
|
# if defined STAT_TIMESPEC
|
||||||
return STAT_TIMESPEC (st, st_atim).tv_nsec;
|
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. */
|
/* Return the nanosecond component of *ST's data modification time. */
|
||||||
inline long int
|
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
|
# if defined STAT_TIMESPEC
|
||||||
return STAT_TIMESPEC (st, st_mtim).tv_nsec;
|
return STAT_TIMESPEC (st, st_mtim).tv_nsec;
|
||||||
|
Reference in New Issue
Block a user