From 44b2d685367a2f9b11e5fea4bfe098b4c22f556f Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 29 May 2020 02:12:08 +1200 Subject: [PATCH] Squash using #if 0 a longstanding TODO to avoid warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Seen on Ubuntu 18.04 with gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04) giving: test_cipher.c: In function ‘test_cipher’: test_cipher.c:299:19: error: suggest braces around empty body in an ‘if’ statement [-Werror=empty-body] /* XXXX check */; ^ cc1: all warnings being treated as errors Signed-off-by: Andrew Bartlett --- lib/hcrypto/test_cipher.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/hcrypto/test_cipher.c b/lib/hcrypto/test_cipher.c index 0131e148b..c566e4bfd 100644 --- a/lib/hcrypto/test_cipher.c +++ b/lib/hcrypto/test_cipher.c @@ -295,8 +295,11 @@ test_cipher(int i, const EVP_CIPHER *c, struct tests *t) hex_encode(d, t->datasize, &s); errx(1, "%s: %d decrypt not the same: %s", t->name, i, s); } + +#if 0 /* TODO */ if (t->outiv) /* XXXX check */; +#endif EVP_CIPHER_CTX_cleanup(&ectx); EVP_CIPHER_CTX_cleanup(&dctx); -- 2.11.4.GIT