summaryrefslogtreecommitdiff
path: root/cipher/rijndael.c
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@iki.fi>2013-12-03 14:03:09 +0200
committerJussi Kivilinna <jussi.kivilinna@iki.fi>2013-12-03 14:03:09 +0200
commit59b1a1b7ee2923e1bf091071ae716d180c6c6006 (patch)
treec5377ea68ea6bae156bed9cbdb90f6e062537e26 /cipher/rijndael.c
parent80896bc8f5e6ed9a627374e34f040ad5f3617584 (diff)
downloadlibgcrypt-59b1a1b7ee2923e1bf091071ae716d180c6c6006.tar.gz
rijndael: fix compiler warning on aarch64
* cipher/rijndael.c (do_setkey): Use braces for empty if statement instead of semicolon. -- Patch fixes following warning: rijndael.c: In function 'do_setkey': rijndael.c:507:9: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] ; ^ Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Diffstat (limited to 'cipher/rijndael.c')
-rw-r--r--cipher/rijndael.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/cipher/rijndael.c b/cipher/rijndael.c
index 257a1627..8019f0aa 100644
--- a/cipher/rijndael.c
+++ b/cipher/rijndael.c
@@ -504,7 +504,9 @@ do_setkey (RIJNDAEL_context *ctx, const byte *key, const unsigned keylen)
KC = 4;
if (0)
- ;
+ {
+ ;
+ }
#ifdef USE_PADLOCK
else if (hwfeatures & HWF_PADLOCK_AES)
{
@@ -559,7 +561,9 @@ do_setkey (RIJNDAEL_context *ctx, const byte *key, const unsigned keylen)
/* NB: We don't yet support Padlock hardware key generation. */
if (0)
- ;
+ {
+ ;
+ }
#ifdef USE_AESNI
else if (ctx->use_aesni)
aesni_do_setkey(ctx, key);