chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prep 229.9: Make all supportable API functions visible.
[elogind.git]
/
src
/
basic
/
siphash24.c
diff --git
a/src/basic/siphash24.c
b/src/basic/siphash24.c
index 4bb41786c8b2a27b224ca9b9a0a682bde50e6fb8..e8b18dd16cd620a927e86b60c65ad832f40278aa 100644
(file)
--- a/
src/basic/siphash24.c
+++ b/
src/basic/siphash24.c
@@
-68,6
+68,12
@@
void siphash24_init(struct siphash *state, const uint8_t k[16]) {
};
}
};
}
+#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
void siphash24_compress(const void *_in, size_t inlen, struct siphash *state) {
const uint8_t *in = _in;
void siphash24_compress(const void *_in, size_t inlen, struct siphash *state) {
const uint8_t *in = _in;
@@
-150,6
+156,11
@@
void siphash24_compress(const void *_in, size_t inlen, struct siphash *state) {
break;
}
}
break;
}
}
+#if 1 /// end diagnostic push in elogind
+# ifdef __GNUC__
+# pragma GCC diagnostic pop
+# endif // __GNUC__
+#endif // 1
uint64_t siphash24_finalize(struct siphash *state) {
uint64_t b;
uint64_t siphash24_finalize(struct siphash *state) {
uint64_t b;