chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
eb0e417
)
Prep v231.7: Make all supportable API functions visible (v231 addition).
author
Sven Eden
<yamakuzure@gmx.net>
Fri, 22 Sep 2017 12:01:10 +0000
(14:01 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Mon, 25 Sep 2017 11:01:25 +0000
(13:01 +0200)
src/basic/time-util.c
patch
|
blob
|
history
diff --git
a/src/basic/time-util.c
b/src/basic/time-util.c
index be0197f4405b87a9b8463cef8b6a41a644ceda45..aadd3b7154858d1dbc1346a9ccaf808b32628ca9 100644
(file)
--- 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
}
#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;
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;
}
}
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) {
#if 0 /// UNNEEDED by elogind
int get_timezone(char **tz) {