chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix service file to match installed elogind binary location
[elogind.git]
/
src
/
basic
/
time-util.c
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) {