diff options
Diffstat (limited to 'util/usage.cc')
-rw-r--r-- | util/usage.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/util/usage.cc b/util/usage.cc index 2a4aa47d4..a597300e3 100644 --- a/util/usage.cc +++ b/util/usage.cc @@ -68,6 +68,18 @@ Wall GetWall() { } #endif +// gcc possible-unused function flags +#ifdef __GNUC__ +double Subtract(time_t first, time_t second) __attribute__ ((unused)); +double DoubleSec(time_t tv) __attribute__ ((unused)); +#if !defined(_WIN32) && !defined(_WIN64) +double Subtract(const struct timeval &first, const struct timeval &second) __attribute__ ((unused)); +double Subtract(const struct timespec &first, const struct timespec &second) __attribute__ ((unused)); +double DoubleSec(const struct timeval &tv) __attribute__ ((unused)); +double DoubleSec(const struct timespec &tv) __attribute__ ((unused)); +#endif +#endif + // Some of these functions are only used on some platforms. #ifdef __clang__ #pragma clang diagnostic push |