Remove compile-warnings when --disable-debug
diff --git a/crypto/cipher/aes_gcm_ossl.c b/crypto/cipher/aes_gcm_ossl.c
index c88c111..dce2a33 100644
--- a/crypto/cipher/aes_gcm_ossl.c
+++ b/crypto/cipher/aes_gcm_ossl.c
@@ -211,14 +211,13 @@
int direction)
{
const EVP_CIPHER *evp;
- v128_t *nonce = iv;
if (direction != direction_encrypt && direction != direction_decrypt) {
return (err_status_bad_param);
}
c->dir = direction;
- debug_print(mod_aes_gcm, "setting iv: %s", v128_hex_string(nonce));
+ debug_print(mod_aes_gcm, "setting iv: %s", v128_hex_string(iv));
switch (c->key_size) {
case AES_256_KEYSIZE:
diff --git a/crypto/kernel/alloc.c b/crypto/kernel/alloc.c
index fec2172..e728798 100644
--- a/crypto/kernel/alloc.c
+++ b/crypto/kernel/alloc.c
@@ -103,9 +103,10 @@
if (ptr) {
debug_print(mod_alloc, "(location: %p) allocated", ptr);
- } else
+ } else {
debug_print(mod_alloc, "allocation failed (asked for %d bytes)\n", size);
-
+ }
+
return ptr;
}