diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-12-12 07:54:16 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-12-12 07:54:16 +0100 |
commit | 20710c92ba65584a6fba036f9a2c3624a6bc2565 (patch) | |
tree | 1b8936dc3b5f9fd605a5dc8a820baa95dbcc4203 /src/basic/siphash24.c | |
parent | 5fc9b845038323a4281383b00221852cfdd37a8d (diff) |
Prep 229.9: Make all supportable API functions visible.
The process of cleaning up elogind, meaning to mask all bits that are
unneeded by elogind, has been finished a while ago.
It is therefore time to re-enable all previously masked API functions
that elogind can support. This will make it easier for future
developers to integrate elogind into their software where they
already support systemd-login.
Diffstat (limited to 'src/basic/siphash24.c')
-rw-r--r-- | src/basic/siphash24.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/basic/siphash24.c b/src/basic/siphash24.c index 4bb41786c..e8b18dd16 100644 --- 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; @@ -150,6 +156,11 @@ void siphash24_compress(const void *_in, size_t inlen, struct siphash *state) { 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; |