test/crypto: fix minsize build

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 <thomas@monjalon.net>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
This commit is contained in:
Thomas Monjalon 2021-08-08 14:51:37 +02:00 committed by David Marchand
parent 5dd12566f1
commit 9c8c806487

View File

@ -1183,7 +1183,7 @@ build_blockcipher_test_suite(enum blockcipher_test_type test_type)
ts_setup = authonly_setup; ts_setup = authonly_setup;
break; break;
default: default:
break; return NULL;
} }
ts = calloc(1, sizeof(struct unit_test_suite) + ts = calloc(1, sizeof(struct unit_test_suite) +