]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
libgcrypt: Avoid -Wempty-body in rijndael do_setkey()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 13 Aug 2021 12:49:10 +0000 (14:49 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 6 Sep 2021 13:16:17 +0000 (15:16 +0200)
Avoid a warning

  lib/libgcrypt-grub/cipher/rijndael.c:229:9:
  warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
    229 |         ;
        |         ^

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/lib/libgcrypt/cipher/rijndael.c

index 38e9a7c08c816bf1655fe62613b04be0642276b1..b3effa2dbb70dd7c0133565ba1d51870697a375b 100644 (file)
@@ -228,7 +228,9 @@ do_setkey (RIJNDAEL_context *ctx, const byte *key, const unsigned keylen)
       KC = 4;
 
       if (0)
-        ;
+        {
+          ;
+        }
 #ifdef USE_PADLOCK
       else if ((_gcry_get_hw_features () & HWF_PADLOCK_AES))
         {