From 510e704e67ea99dc321aadc9527d55ff0f1d4a43 Mon Sep 17 00:00:00 2001 From: Sven Eden Date: Fri, 22 Sep 2017 14:01:10 +0200 Subject: [PATCH] Prep v231.7: Make all supportable API functions visible (v231 addition). --- src/basic/time-util.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/basic/time-util.c b/src/basic/time-util.c index be0197f44..aadd3b715 100644 --- a/src/basic/time-util.c +++ b/src/basic/time-util.c @@ -1307,6 +1307,12 @@ clockid_t clock_boottime_or_monotonic(void) { } #endif // 0 +#if 1 /// let's add a diagnostic push to silence -Wimplicit-fallthrough to elogind +# ifdef __GNUC__ +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wimplicit-fallthrough" +# endif // __GNUC__ +#endif // 1 bool clock_supported(clockid_t clock) { struct timespec ts; @@ -1330,6 +1336,11 @@ bool clock_supported(clockid_t clock) { return clock_gettime(clock, &ts) >= 0; } } +#if 1 /// end diagnostic push in elogind +# ifdef __GNUC__ +# pragma GCC diagnostic pop +# endif // __GNUC__ +#endif // 1 #if 0 /// UNNEEDED by elogind int get_timezone(char **tz) { -- 2.30.2