diff options
author | Nick Clifton <nickc@redhat.com> | 2021-04-19 09:41:04 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2021-04-19 09:41:04 +0100 |
commit | 4dee4f3ea143a8910de487a810e972152154292d (patch) | |
tree | 0b012f70acf5a4429f64aa1bd26a53f894b523a9 /binutils | |
parent | 2c2645d7a8b0498d7b581eae709e0f2ba51dcfe6 (diff) | |
download | fsf-binutils-gdb-4dee4f3ea143a8910de487a810e972152154292d.zip fsf-binutils-gdb-4dee4f3ea143a8910de487a810e972152154292d.tar.gz fsf-binutils-gdb-4dee4f3ea143a8910de487a810e972152154292d.tar.bz2 |
Fix compile time warning about unused functions.
binutils * rename.c: (get_stat_atime_ns): Add prototype.
(get_stat_mtime_ns): Add prototype.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/rename.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 1eb42d1..b0b7115 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2021-04-19 Nick Clifton <nickc@redhat.com> + + * rename.c: (get_stat_atime_ns): Add prototype. + (get_stat_mtime_ns): Add prototype. + 2021-04-16 Alan Modra <amodra@gmail.com> PR 27725 diff --git a/binutils/rename.c b/binutils/rename.c index 544225d..8826917 100644 --- a/binutils/rename.c +++ b/binutils/rename.c @@ -102,6 +102,9 @@ simple_copy (int fromfd, const char *to, # define STAT_TIMESPEC_NS(st, st_xtim) ((st)->st_xtim.st__tim.tv_nsec) #endif +static inline long int get_stat_atime_ns (struct stat const *) ATTRIBUTE_UNUSED; +static inline long int get_stat_mtime_ns (struct stat const *) ATTRIBUTE_UNUSED; + /* Return the nanosecond component of *ST's access time. */ static inline long int get_stat_atime_ns (struct stat const *st ATTRIBUTE_UNUSED) |