From 9c8c806487853e2fba777d6497c33e3c3bb5ac46 Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Sun, 8 Aug 2021 14:51:37 +0200 Subject: [PATCH] test/crypto: fix minsize build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Error occurs when configuring meson with --buildtype=minsize with GCC 11.1.0: app/test/test_cryptodev_blockcipher.c:1133:45: error: ‘blk_tcs’ may be used uninitialized in this function [-Werror=maybe-uninitialized] | const struct blockcipher_test_case *blk_tcs; | ^~~~~~~ Signed-off-by: Thomas Monjalon Reviewed-by: Ruifeng Wang --- app/test/test_cryptodev_blockcipher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_cryptodev_blockcipher.c b/app/test/test_cryptodev_blockcipher.c index 1c948eb008..3cdb2c96e8 100644 --- a/app/test/test_cryptodev_blockcipher.c +++ b/app/test/test_cryptodev_blockcipher.c @@ -1183,7 +1183,7 @@ build_blockcipher_test_suite(enum blockcipher_test_type test_type) ts_setup = authonly_setup; break; default: - break; + return NULL; } ts = calloc(1, sizeof(struct unit_test_suite) +