aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_cryptobox.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-04-06 16:27:41 +0200
committerChristian Göttsche <cgzones@googlemail.com>2020-04-11 14:16:25 +0200
commit765813e908e0f23e98ec6224b0408a152a9d3ec0 (patch)
tree1e4140aa1a097fe081b05d74334f95973a309e28 /src/lua/lua_cryptobox.c
parentd6da3282ea865b8c39fab3e7026296fa922e1a64 (diff)
downloadrspamd-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.c4
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);