From 4dee4f3ea143a8910de487a810e972152154292d Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 19 Apr 2021 09:41:04 +0100 Subject: [PATCH] Fix compile time warning about unused functions. binutils * rename.c: (get_stat_atime_ns): Add prototype. (get_stat_mtime_ns): Add prototype. --- binutils/ChangeLog | 5 +++++ binutils/rename.c | 3 +++ 2 files changed, 8 insertions(+) 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) -- 2.30.2