diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-04-06 16:27:41 +0200 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2020-04-11 14:16:25 +0200 |
commit | 765813e908e0f23e98ec6224b0408a152a9d3ec0 (patch) | |
tree | 1e4140aa1a097fe081b05d74334f95973a309e28 /src/lua/lua_cryptobox.c | |
parent | d6da3282ea865b8c39fab3e7026296fa922e1a64 (diff) | |
download | rspamd-765813e908e0f23e98ec6224b0408a152a9d3ec0.tar.gz rspamd-765813e908e0f23e98ec6224b0408a152a9d3ec0.zip |
[Minor] silence warnings about unused function results
GCC does not respect `(void) func()`
Diffstat (limited to 'src/lua/lua_cryptobox.c')
-rw-r--r-- | src/lua/lua_cryptobox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_cryptobox.c b/src/lua/lua_cryptobox.c index 07b4888b9..784abea65 100644 --- a/src/lua/lua_cryptobox.c +++ b/src/lua/lua_cryptobox.c @@ -1008,7 +1008,7 @@ rspamd_lua_hash_create (const gchar *type) } else if (g_ascii_strcasecmp (type, "blake2") == 0) { h->type = LUA_CRYPTOBOX_HASH_BLAKE2; - posix_memalign ((void **)&h->content.h, _Alignof (rspamd_cryptobox_hash_state_t), + (void) !posix_memalign ((void **)&h->content.h, _Alignof (rspamd_cryptobox_hash_state_t), sizeof (*h->content.h)); g_assert (h->content.h != NULL); rspamd_cryptobox_hash_init (h->content.h, NULL, 0); @@ -1045,7 +1045,7 @@ rspamd_lua_hash_create (const gchar *type) } else { h->type = LUA_CRYPTOBOX_HASH_BLAKE2; - posix_memalign ((void **)&h->content.h, _Alignof (rspamd_cryptobox_hash_state_t), + (void) !posix_memalign ((void **)&h->content.h, _Alignof (rspamd_cryptobox_hash_state_t), sizeof (*h->content.h)); g_assert (h->content.h != NULL); rspamd_cryptobox_hash_init (h->content.h, NULL, 0); |