[PATCH 3/3] rijndael: fix unused parameter warning

Jussi Kivilinna jussi.kivilinna at iki.fi
Sat Oct 27 17:42:07 CEST 2018


* cipher/rijndael.c (do_setkey): Silence unused 'hd' warning.
--

This commit fixes "warning: unused parameter 'hd'" warning seen on
architectures that do not have alternative AES implementations.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
---
 0 files changed

diff --git a/cipher/rijndael.c b/cipher/rijndael.c
index d126f8847..1bc8b0fc2 100644
--- a/cipher/rijndael.c
+++ b/cipher/rijndael.c
@@ -264,6 +264,8 @@ do_setkey (RIJNDAEL_context *ctx, const byte *key, const unsigned keylen,
   unsigned int hwfeatures;
 #endif
 
+  (void)hd;
+
   /* The on-the-fly self tests are only run in non-fips mode. In fips
      mode explicit self-tests are required.  Actually the on-the-fly
      self-tests are not fully thread-safe and it might happen that a




More information about the Gcrypt-devel mailing list