From: Nick Clifton Date: Mon, 19 Apr 2021 08:41:04 +0000 (+0100) Subject: Fix compile time warning about unused functions. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4dee4f3ea143a8910de487a810e972152154292d;p=binutils-gdb.git Fix compile time warning about unused functions. binutils * rename.c: (get_stat_atime_ns): Add prototype. (get_stat_mtime_ns): Add prototype. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 1eb42d18392..b0b7115feb8 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2021-04-19 Nick Clifton + + * rename.c: (get_stat_atime_ns): Add prototype. + (get_stat_mtime_ns): Add prototype. + 2021-04-16 Alan Modra PR 27725 diff --git a/binutils/rename.c b/binutils/rename.c index 544225d73f7..8826917c18c 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)