[PATCH 2/2] Camellia: fix compiler warning

Jussi Kivilinna jussi.kivilinna at iki.fi
Tue Nov 19 18:30:05 CET 2013


* cipher/camellia-glue.c (camellia_setkey): Use braces around empty if
statement.
--

Patch silences following warning:

 camellia-glue.c: In function 'camellia_setkey':
 camellia-glue.c:183:5: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]

Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki-fi>
---
 cipher/camellia-glue.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cipher/camellia-glue.c b/cipher/camellia-glue.c
index 575bb04..f18d135 100644
--- a/cipher/camellia-glue.c
+++ b/cipher/camellia-glue.c
@@ -180,7 +180,7 @@ camellia_setkey(void *c, const byte *key, unsigned keylen)
   ctx->keybitlength=keylen*8;
 
   if (0)
-    ;
+    { }
 #ifdef USE_AESNI_AVX
   else if (ctx->use_aesni_avx)
     _gcry_camellia_aesni_avx_keygen(ctx, key, keylen);




More information about the Gcrypt-devel mailing list